The United Nations shapes global affairs by <span>providing a way for nation-states to discuss global affairs and set goals.
</span>
The expansion plans of the Soviets led initially to the Containment policy of the early Cold War. The United States established the Containment policy which is primary to prevent the spread of the Communism period.
I hope this answers your question.