This isn't over, they'll go to the European Court of Justice for sure.
They'll appeal most likely but their chances of success look slim.
Right now Apple is probably winning a battle but might be losing the war. The next big EU mandate, besides tackling climate change, will probably be clamping down on tax shenanigans.
Next time they won't even be able to win anything as the law will be explicitly against such corporate maneuvers.