In this case I suggest reading the actual text of the bill, you might find it informative.
It doesn’t ban these surgeries, it just bans paying for them with most insurance plans (i.e. other people’s money), and it makes the ones who give the treatments liable for the fallout when they turn out to have been a mistake (this 2nd part is based on undercover footage which shows that providers know that some of these patients are going to regret transitioning).
https://capitol.texas.gov/tlodocs/88R/billtext/html/SB01029I.htm