In 1848, the Treaty of Guadalupe Hidalgo ended the Mexican-American War and resulted in which of the following events?​

A) Slavery was outlawed in the new territories gained by the United States in the war.

B) Mexico paid a sum of $2 million to the US government.

C) The Rio Grande River was established as a boundary between Texas and Mexico.

D) Texas was admitted into the Union.