Apple had been switching their various iOS devices to USB-C for several years before the EU decided to mandate it, so I don't know how you can assert that them switching the iPhone to USB-C was because they were forced to. It looks more like the EU just had lucky timing and told them to do something they were already doing.
Laptops, the ipads. Phones and airpods came after the eu law. Debatable, but it seems to me like they consider the ipad in the same class as a laptop, so it got grouped with those. Otherwise why did it take 5 years between the first ipad with usb-c and the first iphone?
I am curious where you got this impression?
Apple fought it the whole way, commissioned studies to show it was a bad idea, etc etc. This after they had a decade prior been subject to the same thing with micro USB and skirted that agreement by shipping more unnecessary cables.
https://appleinsider.com/articles/20/02/02/what-the-eu-manda...