In 1844, Congress finally agreed to annex the territory of Texas. On December 29, 1845, Texas entered the United States as a slave state, broadening the irrepressible differences in the United States over the issue of slavery and setting off the Mexican-American War.