How and why did the goals of the US foreign policy change from World War 1 to the Korean war?