Let's get something straight. Trump is not gender critical. I'm not even sure he's anti trans. He's just pro himself, and pro anything he thinks is useful to him in some way.
The overwhelming majority of people don't think that trans women should be competing in women's sports and a smaller majority of people don't think they should be using women's toilets.
People who hold these entirely mainstream views are being labelled bigots and transphobes by the Democrats (and the political left and centre left in most western countries), who seem incapable of reading the fucking room.
Trump might be a nasty, ignorant piece of shit on many way, but he is an excellent strategist. He doesn't care about sounding intelligent and cultivated and refined, or like he's thought through the issues at length and come to a considered conclusion (like JK Rowling, for example) because he knows that's not what wins elections.
Michael Moore wrote an amazing essay in 2016 called "Why Trump will win" and he explained which states Trump needed to win in order to win the election, and how he was going to do it. Almost everything Michael Moore predicted in that essay happened almost exactly as he said it would. Trans issues weren't a hot topic in 2016 but they are now, and so this is really no different. He'll have identified that in certain states, clamping down on trans stuff will get enough voters to come out and tick the "Trump" box to get him over the line, and that in certain other states, forcing the Democrats into an absurd position where they have to say, "You can have a penis and still be a woman and compete in women's sports and if you believe otherwise you're a horrible bigot" will at least make a lot of would-be Democrat voters to stay at home on election day.
He certainly doesn't care about women, or women's sports. And if he thought that "women can have penises" was a popular viewpoint, that is the position he would take. He only cares about his own pursuit of power.
And he is fundamentally a troll, so now he's won a second term he's really going hell for leather with all these anti-woke policies to make the libs cry.
What the Democrats really need to do at this point is STFU about trans issues, accept that they have lost this one, go back to campaigning vocally about issues more people actually agree with them on, and when the next election campaign comes round (which is very soon), focus all their attention on those issues and do precisely nothing to reverse these measures taken by Trump.
But they are too stupid and un self aware to do that, so I expect they will lose the next election too. And the next Republican president might well be even scarier than Trump.