The European Parliament has approved a new regulation that would require all mobile devices, cameras and tablets sold in the European Union to have USB Type-C charging ports by the end of 2024.