Nothing is changed retrospectively, in the EU you cant give one company a tax break. Ireland knew this, but went ahead and did it anyway, Apple knew this too, and took a chance.
Apple's structures are a correct reading of international tax rules. The rules should be changed; Apple should not be punished for following the law.