Hmm, "move to Ireland" means "home country" becomes Ireland. Obviously. Companies can do that, and in fact they do that. Fiat merged with Peugeot and suddenly the company is headquartered in the Netherlands, not France or Italy, for similar reasons.
In that case the EU would deem the state aid that the company receives is illegal. This is actually what this ruling claims, that Apple received illegal state aid.
Ah well, the EU does have tax havens and it will keep them after this ruling. But there are limits because after all the EU can't be a fair open market if one state gives out so huge state subsidies.