Isn't this just office politics? It happens everywhere. It's not always "because you're a woman" but there are always people who dislike others and make it hard to do their job, don't invite them to work dinners, etc. That's bad but it's equally bad for people everywhere. And it's legal.