A federal judge ruled Donald Trump cannot demand that UCLA pay a $1.2 billion settlement that would have restricted academic freedoms.