The Nazis didn’t agree to the Nuremburg Code before their crimes, but we STILL hanged them for violating it. Repealing the Code does NOT absolve the EU.
They were hanged for multiple crimes against humanity, including aggression, breaking of treaties, violating sovereign borders, genocide, experimental procedures without consent, war against civilians. The Nuremberg trial indictments were only 3, but enough to hang.