UN Flag is quite correct - our troops were part of a “Police Action” declared by the UN. Many nations other than the USA were involved, although (as usual) we carried most of the burden.
Only reason the UN took action was because Stalin’s USSR was boycotting Security Council and missed their chance to veto the vote.