Cellphones and handheld electronic devices in the European Union will be required to have a USB-C charging port by 2024.