Texas was admitted to the Union as a slave state. The annexation soon led to the Mexican-American War.