There's not even a law against it, just fascist bluster and declarations. Some hospitals are still providing trans youth care now, today. They've even had some major victories on the legal front against the feds.
So...why is this a position worth abandoning? Because a politician wants us to?