There is no evidence that Harvard obtained a restraining order against Donald Trump; rather, federal judges issued restraining orders blocking or pausing Trump administration policies affecting Harvard's enrollment of foreign students.
Harvard restraining order against trump

FactVerify
Source: factverify.com
What the Evidence Shows
The claim states that Harvard obtained a restraining order against Donald Trump. The search results and sources do not support this claim. Instead, the legal actions involved federal judges issuing restraining orders against certain Trump administration policies that impacted Harvard University, specifically regarding the enrollment of foreign students.
For example, a federal judge blocked Trump's order banning foreign students from attending Harvard. Another judge extended a restraining order pausing Trump's ban on Harvard hosting foreign students. These orders were issued by judges to block or pause Trump administration actions, not by Harvard against Trump.
There is no indication that Harvard itself sought or was granted a restraining order against Trump. The legal conflict was between the Trump administration and Harvard, with courts intervening to block or pause administration policies.
Therefore, the claim that Harvard obtained a restraining order against Trump is false; rather, courts issued restraining orders against Trump administration policies affecting Harvard.