Listen, in most cities they turn away men based on gender, or make them pay a cover, while they let well-dressed women in. That is their business model. I guess they can claim that men's attraction to women is a compelling business reason, which I believe may be an exception to the anti-discrimination laws. Similar to women-only gyms saying that women's desire to avoid men while working out is a compelling business reason.
I am not a lawyer but it always struck me as unfair to a whole gender to treat them differently when they want to enter nightclubs. But of course this policy is also very ageist, biased against heavyset people etc. So do we ban that as well, since it's not something people can control?