To be even more explicit about this, an employer cannot refuse to higher only married lesbians. A cisgender man married to a woman could bring a suit for sex discrimination.
Discrimination is defined by what's called "disparate treatment," that is, treating individuals differently because of their sex. It doesn't relate to what is legally permissible outside that situation.
Edit: So the company has only employees that are either: not married, or only married to a male. How does this apply?
I think what you're trying to get at in your edit is more in line with Pre-Employment Inquiries and Marital Status. [0]. The EEOC puts it this way:
"It is clearly discriminatory to ask such questions only of women and not men (or vice-versa). Even if asked of both men and women, such questions may be seen as evidence of intent to discriminate against, for example, women with children."
There established precedent for "sex-plus" discrimination [1], whereby the claimants sex "plus" another factor brings it closer to a Title VII claim.
The TL;DR answer to your question is that nobody has brought a case (that I can find) with those particular details, but you can't treat men differently than women and vice-versa, and that includes gay and trans men and women
[0]https://www.eeoc.gov/pre-employment-inquiries-and-marital-st... [1]https://www.businessmanagementdaily.com/52309/title-vii-sex-...