Maybe I am misunderstanding this, but from what I'm seeing, this is not okay.
Apple followed the law. If you want to change the tax laws going forward, great. Do whatever you want, government, and Apple will follow the new laws.
But you can't punish Apple when for years it's been doing something that is legal by US, Irish and U.K. law.
Same deal goes for middle class 529 savings accounts. People have set them up because the law says the earnings are tax exempt....