I can't talk strictly about the legality, but I will tell you I have seen that and much worse. I would say in my experience it is very unlikely anything would happen to the professor unless it is very brazen behavior. Universities are highly opaque and protective and will absolutely go to the mat to defend professors ([example][1]). Grad students occupy a strange place between education and employment. Although often paid, grad students are not considered full employees by many universities (often euphemisms like "[apprentice personnel][2]" are used). Although NLRB recently ruled that grad students are employees in some sense and therefore can unionize, it is probably a legal gray area as to whether grad students are employees for other purposes. Thus rules like non-discrimination, minimum wage, wrongful termination etc may or may not apply to grad student workers and universities can very effectively navigate this ambiguity. [1]: https://www.chemistryworld.com/news/ucla-spent-45-million-on-legal-costs-in-sangji-case/7872.article [2]: https://grad.ucla.edu/gss/appm/aapmanual.pdf