There is no federal law saying men need to be treated as women.
From the link I posted above- “ U.S. Supreme Court decision in Bostock v. Clayton County, issued one year ago this week, in which the Supreme Court recognized that it is impossible to discriminate against a person based on their sexual orientation or gender identity without discriminating against that person based on sex.”.