Of course governments have the ability to decide what products are sold in their countries and how.
They should get to regulate the design of products from non-EU countries only those that are sold inside EU.
The fact that it is not cost effective for Apple to design two separate products(software or hardware) for EU and non-EU is an Apple problem.