The USpresident at the time was President Truman, who was determined to contain communism.
President Truman sent advisors, supplies and warships to the seas around Korea. However, he knew it would look better if he went to the League of Nations and got them to back him.