Just how many wars has the UN "legalized"? The only one I can think of is Korea, and only because Russia threw a hissie fit and boycotted some key sessions. If they had been present the war in Korea never would have been "sanctioned".
And how many wars have occurred that they did not "legalize". Give me a break.
Oh, yes, fuck the UN and your world government.