This would be an interesting ruling though as ANY tax breaks would become illegal in the EU and thus there would be no viable way for companies to keep their business in the richer EU countries.
Umm, what? If they are paying taxes it's because they are profitable. Tax avoidance like Apple is doing is the difference between profits and more profits. You don't get taxed when you are losing money. Companies that are profitable now in "richer EU countries" would remain so, just to a lesser degree. Anyway the EU is a monetary union and there are rules relating to the flow of money within a monetary union. Just like the US being a part of the EU means that countries have given away some sovereignty in exchange for economic benefits. That's not necessarily a bad thing.