I'm not sure about in the US, I know in Canada we've had lots of university faculty positions advertised recently that are explicity for women or some other groups. I don't understand how it's legal but it is.
There's so much bullshit in this. Universities are not allowed to advertise positions as "women only", but at the same time they are required to reach certain percentage of female "representation" by law.
https://www.canada.ca/en/public-service-commission/jobs/serv...
Are you sure?
Many countries require being harmed by an action and then bringing that action before a court, before anyone ever compares that action to any specific law at all.
So you can see how many actions become de facto legal if nobody ever does that.