Gender identity and gender are not synonymous. To hold them as such is unlawful. For a law to be just, it must be based on truth. History bears that out.
Slavery was based on the untruth that black people were chattel. That lie was codified in the Constitution and later ...