What did the Treaty of Guadalupe Hidalgo do for the US?

It ended the border dispute and gave the US Alta California and Nuevo Mexico.