Yes. Since the Federal government requires that all states much educate all students from K-12 for free, Texas and a dozen other states have decided that the cost of treating an illegal as in-state outweighs the social cost of having them drop out or end their education at graduation. Time will tell if that is true, but it’s a perfectly reasonable thing to attempt.
State’s have the obligation of doing what’s best for their state.