A pair of federal judges in Boston slapped a seven-day restraining order on President Donald J. Trump early this morning on behalf of two Iranian professors, who argued they were unlawfully detained at Logan Airport because of Trump's executive order banning Muslims from entering the country.

"This is a huge victory for justice," said Matthew Segal, legal director of the ACLU of Massachusetts, which sued on behalf of two UMass Dartmouth professors who had been detained at Logan International Airport saturday. "We told President Trump we would see him in court if he ordered this unconstitutional ban on Muslims. He tried, and federal courts in Boston and throughout the nation stopped it in its tracks."

Mazdak Pourabdollah Tootkaboni and Arghavan Louhghalam, Iranian nationals and Muslims, are associate professors at the University of Massachusetts-Dartmouth and lawful permanent residents of the United States, according to ACLU spokesman Aaron Wolfson.

Click here to read the Temporary Restraining Order

ACLU lawyers for Tootkaboni and Louhghalam filed suit against Trump and the departments of Homeland Security and Customs and Border Protection last night in U.S. District Court in South Boston after they landed at Logan at 5:30 p.m. upon returning home from an academic conference and were detained, prompting an emergency hearing that stretched into this morning.

Judge Allison D. Burroughs and Magistrate Judge Judith G. Dein, in a three-page decision, said the detention of Tootkaboni and Louhghalam violated their rights to due process and equal protection.

"Absent a stay of removal, petitioners and others similar situated, including lawful permanent residents, citizens, visa-holders, approved refugees, and other individuals from nations who are subject to the January 27, 2017 executive order, are likely to suffer irreparable harm," the jurists wrote.

Burroughs and Dein said they were issuing the order "in the public interest."

The order permits individuals traveling to Boston from Iraq, Syria, Iran, Sudan, Libya, Somalia and Yemen who are legally authorized to enter the United States to do so – at least for the next seven days.

Attorneys for Tootkaboni and Louhghalam have until tomorrow to filed an amended complaint. Burroughs and Dein indicated they will schedule a second hearing before the temporary restraining order expires next Sunday.

Yesterday's civil action states the professors "have a constitutional right to return home to the United States after a brief trip abroad, and cannot be deprived of their lawful permanent status without justification and due process protections."

The ACLU of Massachusetts suit was filed moments after a federal judge in the Eastern District of New York granted a stay of removal on behalf of two Iraqi nationals and others "similarly situated" who have been cleared to enter the United States.

New York Attorney General Eric T. Schneiderman applauded the action, calling Trump's executive order "dangerous and discriminatory."

"I will do everything within my power to help lead the fight to permanently strike it down," Schneiderman vowed late last night.

Lawyers for Tootkaboni and Louhghalam complained they could not access their clients during their detention, which they likened in their suit to be "left in limbo."

Segal said, "President Trump's executive order violates the due process, religious liberty and equal protection clauses of the Constitution. It is part of a widespread policy and practice applied to many refugees and arriving aliens detained after the issuance of Trump's executive order on Friday night."