That is workplace conduct not sexual harassment.The SCOTUS ruling was about sexual discrimination, not harassment.
Harassment can be a form of discrimination but hiring/firing was the specific issue in the cases.
The point was you can't treat men and women differently for the same conduct.
I think you're being overly optimistic. If the lawyers can stretch the word 'sex' to mean sexual orientation and gender, then they can stretch hiring practices to include corporate atmospheres viewed as hostile to continued employment.