In practical terms, I can see two outcomes to this foolishness.
Cameras and signs put up in women’s restrooms that say this restroom is under surveillance by a woman, and that any indecent display or behavior will be prosecuted.
Second, that females under the age of 18 wanting to use this restroom must be accompanied by a female parent or guardian, or by a female employee.
Neither of those are bad ideas