A federal court in Boston early Sunday morning sided with lawyers representing permanent US residents in their effort to return to the United States.

Those travelers, who hold American green cards, are from countries targeted by President Donald Trump in his executive order banning Muslim’s from seven nations from entering or reentering the United States.

Eight people arriving from France were held by Customs and Border agents at Logan and interrogated for up to three hours.

Most were eventually allowed to pass through following a stay by a New York federal judge. 

But the ruling fell short of protecting green card holders arriving the next day.

Immigration lawyers and the ACLU then rushed to the federal courthouse Saturday evening to request a restraining order to stay Trump’s order as it applied locally.

The restraining order will be in effect for seven days.