> You seem to be equating nonbinary and transgender.
First, many nonbinary people identify as transgender. Second, anti-trans laws don't have very clear delineations on who they target, first of all because the legislation is written by clueless people who hardly have an idea or even care to have an idea what it means to be trans versus nonbinary.
But moreover it should be obvious by now that the current crop of anti-trans laws are just a backlash to the Obergefell decision in 2015, and it's not even intended to target specifically trans people. They are vice signals intended to put LGBTQIA people in general on notice as to the ideological posture of the state. They are not going to be very discriminate about targeting you if you're trans but leaving you alone if you're nonbinary. It's a distinction without a difference to them.
Anti trans laws are an admission that the anti-LGBTQIA movement lost a battle but intends to continue the war by moving over to a new letter of the acronym. We know this to be true because they're recycling all the same anti-gay rhetoric and tactics they used to use in the 90s against gay rights, but this time subbing in "trans", who appear to be targeted next because of their visibility in the community. There are no principles behind these arguments, because if there were they'd still be making the same arguments about gay people. They aren't making those arguments anymore because they know they lost those arguments culturally. But they still believe those things and want to keep saying them but this time directing their hate toward trans people.
And it's true Obergefell gave us same sex marriage, but since 2015 they have been vowing to erase that decision, and they've worked tirelessly to make that a reality. The Supreme Court is now exactly where the GOP have wanted it for a generation, and they are using it as they promised; abortion rights will be done this summer, and next on the chopping block is gay marriage as promised. They said they are going to do it, and it looks like they will. Right now it doesn't seem like there's a lot to stop them.
> we’re taking about legislation aren’t we? Not discrimination in general?
One last thing I'd like to point out, is that when lawmakers stand in the way of anti-discrimination laws because they want the discrimination to continue, this is a form of legalized discrimination. You don't need to make harassment and discrimination legal by passing a law saying it's okay, instead you keep it legal by preventing the passage of laws saying it's forbidden.