By this logic the other countries should do the same thing and offer them sweetheart deals in the hopes that the EU will cancel the deal ex post facto and give them the money anyway.
Meanwhile the companies would then have the incentive to take countermeasures, e.g. make it so the EU entity has no assets and would then have no money to pay retroactive taxes and file for bankruptcy if they get rug pulled like this again, or just pull out of the EU and sell there through third party distributors that have razor thin local margins.
Retroactive court decisions like this set up perverse incentives.