The EU has the right to mandate rules on what corporations sell to its population. No one is forcing Apple to keep selling phones in the EU. They could even create a version of iPhone exclusively for them. Hopefully that hasn't been the case and finally we all have USB-C. Thanks EU.
Hopefully they start being much more strict about repairability and openness.