Clarification. The EU asked the Irish Government to collect taxes that it declared were unpaid. It would then decide which countries were owed which chunk or the unpaid tax (all tax was declared through Ireland but sales were not solely in Ireland. So the tax was to be redistributed to the origin of sales). The issue with the judgement, and the reason the Irish Government were fighting it, was the ruling stated Ireland breached the law and provided an unfair advantage to one company. The Government were arguing that every company could avail of the same tax rules so it was not an unfair advantage / subsidy.
As for being a tax haven, this is something that is said by others who are outside of the Irish tax system and only look at the low corporate tax (they fail to see they other hidden taxes businesses have to pay like water tax, bin tax etc). Im not suggesting that the companies are fully "paying their way" but that it is too simplistic to only look at 1 tax requirement.
If you have worked in Ireland you would understand that the Irish tax system is extremely complex.....as employee you could pay tax in 3 separate income tax calculations, then a "bank bailout tax" that has remained even though the banks were bailed out. It is not uncommon for middle / high income workers to pay approx. 50% of their wage in deductions. Similarly if you tried to set up a company you would understand that the rules are not black and white but rather "you apply this tax calculation on a Friday, if the moon is full and the grass is blowing to the west"