North Korea was not invited as a sitting temporary member of the UN, which violated UN Charter Article 32;
What charter did the US believe was violated by intervening in the Korean conflict?
UN Charter Article 32