The EU Commission evaluated the tax agreements made by the Irish government and Apple to be a form of state aid, which is illegal in the EU. They then ordered the state aid to be recovered, which they can do within 10 years from when the case was opened (so from 2004 the case having been opened in 2014).
I find actually surprising the Irish government had not been fined too.
Oh great, so the Irish government agreed to something that was illegal in the union that they're a part of, and Apple is the one to blame. Wow.
I mean I'm all for supporting the commonwealth, but calling this agreement tax avoidance on Apple's part is mind-boggling. I live in one of the tax-heaviest countries in the world (Norway), and I know what high taxes can give back in regards to health care and infrastructure. But in this case Apple has followed the laws, signed the papers, business as usual. The Irish government however, have done a really poor job, broken EU regulations (a parliament they have chosen to be a part of), and most important of all, made a really bad deal which hurts the people they are supposed to govern.
The Irish government are the one's that should be in the bad spotlight here. Not Apple.