The ruling comes as the University of California is facing a Trump administration demand for a $1 billion settlement.