Hello there, and thank you for posting your question here on brainly.
The United States and Mexico signed a treaty called "The Treaty of Guadalupe-Hidalgo". The treaty pointed out that Texas was now a state of the U.S, and took control of that large chunk of land (Texas) as their own.
Hope this helped you!! ☺♥