No. I like it. Force our military to fight law enforcement doing its legally defined job.
US military v Texas. That would seem to be the logical consequence. It could even lead to a civil war, starting with the US govt against Texas...which, if won by Texas, and its allies, would result in the termination of the invasion from the south.
I can't think of any other way to accomplish that end, since the invaders will keep coming and the US govt (both parties) seems committed to bringing millions of people in.
That said, if there's any chance Texas will stand its ground, the US is most unlikely to engage in a hot war that might spread to other states; nor would conservatives who still believe in fair elections, want to lose the electoral votes of Texas (though they will in any case, whether Texas secedes, or its new population votes).
Conclusion: the only way with any chance of success at ending the invasion is a civil war; and it won't happen.