Students alleged they were suspended after they objected to the professor’s conduct.