The Irish government got rolled by Apple, not that they minded too much. Half of Apple's loaf is still larger than a whole loaf from just about anyone else.
But yes, it does sound like state aid. And it does distort competition.
What needs to be stopped is the movement of profits from one country to another.