I disagree that the university will have a problem defending it in court. Violations of the student code or hostile environments can be defined broadly enough to protect them from suits.
The Supreme Court said otherwise in Papish v Board of Curators and Healy v James (per Volkhov at the link earlier in the thread)