The ruling was a blow to both President Trump, who had voluntarily dismissed the suit last week, and to the Justice Department, which used the suit to establish a fund likely intended for Trump allies.
A political fight is playing out in Iran, where the small but loud faction of hard-liners has used rallies, state media and private and public statements to try to undermine negotiations.
In an incensed social media post, President Trump suggested that the ruling might prompt him to cast the center aside after more than a year at its helm.
But details remained scant after officials said last week that, with “extraordinary” exceptions, people seeking permanent residency must first leave the country.
Trump administration officials want local health authorities to constantly monitor the 18 passengers for another three weeks, a requirement that far exceeds typical protocols.