Which of the following was a consequence of the Treaty of Guadalupe-Hidalgo?
Texas gained independence from Mexico.
The war between the United States and Mexico ended.
The Bear Flag Republic was officially recognized as a state.
The debate over allowing slavery in the territory gained by the U.S. was settled.