I think the Mexicans could keep most of Texas. But in the long run, the eastern part of the state would probably become US territory, unless some catastrophic event in the mid-19th century somehow crippled the US's ability to expand in the Gulf of Mexico....
Unless of course the US decides to take that eastern portion along with some other rather large chunks after one border dispute or another