See South Dakota v. Dole, which holds (among other things) that federal funding cannot be granted contingently on a requirement that would otherwise violate the constitution or be "coercive". This would almost certainly apply to the states via incorporation. So while a state could choose to not fund universities at all, if it chooses to, it cannot favor certain universities based on a speech-test.