A judge ruled that the women's team's case could not go to trial.