Except they aren't. WTO treaty obligations for equitable treatment of other nations (MFN obligations) supersede local laws. Overriding arbitrary local laws is the whole point of the WTO, and of every other trade treaty.
The only way these tariffs work is Trump pulling the "national security emergency" card -- and obviously 'punishing' the EU for building better planes isn't a national security issue worth dismantling the WTO over.