That deal has been deemed illegal.
Apple & friends have done nothing illegal. They made a deal with the Irish government where the Irish government provided tax incentives in exchange for local jobs. That's nothing new, a lot of countries, including the US, do so.
What is new is that non-elected non-judiciary officials have the power to "rule" over an independent state's tax laws and regulations. This is what drives member countries out of the EU.
It's almost as if you had a bunch of them sit together for a working lunch with one topic: how can we get money out of large tech companies?
Don't forget, Putin does the same to his opponents. They're always arrested for "tax evasion". Remember Gazprom?