iPhones will get USB-C charging after Apple says it will have to comply with EU law