The EU is acting in its role of rule enforcer, it did not set the tax rate which Ireland imposes on the US corporations who have their EU headquarters there, the sovereign Irish government fixed those rates. But if a corporation does not pay what they agreed to pay in taxes then the EU steps in...