I think this is potentially a 1st amendment violation. Of course, if you go to a private school, this is not the case.
If you're at a public school, however, it would appear that the goverment is quite directly prohibiting the speech of your professors, and the limitation serves almost no state interest at all.