June 20 (UPI) -- Harvard University received good news on two fronts Friday -- the courts and President Donald Trump -- in its fight with the federal government on funding and foreign students.

A federal judge in Massachusetts granted a preliminary injunction that would continue blocking Trump efforts to bar international students from attending the private university.

Judge Allison D. Burroughs, who was nominated by President Barack Obama, previously had issued a temporary block halting the moves by Trump, though her decision can be appealed to the circuit court and ultimately the Supreme Court.

Shortly afterward at 3:40 p.m. EDT, Trump posted on Truth Social that a deal could be reached with the Ivy League school in Cambridge, Mass., after billions of dollars in grants were paused as the school faced accusations of anti-Semitism.

"Many people have been asking what is going on with Harvard University and their large-scale improprieties that we have been addressing, looking for a solution. We have been working closely with Harvard, and it is very possible that a Deal will be announced over the next week or so," Trump said.