The ban on people entering the United States from six mostly Muslim countries will now apply for everyone except people who have a “credible claim of a bona fide relationship with a person or entity in the United States,” the justices said in an unsigned opinion.

The Court also agreed to hear the case in the fall.

The court was expected to act on Trump’s emergency request after lower courts blocked the measure.

The Supreme Court was set to issue the final rulings on Monday, including one on religious rights, amid talk that swing voter Justice Anthony Kennedy is considering retirement.

As the justices look to finish work before their summer break, they must decide what to do with Trump’s travel ban, which was blocked by lower courts. The administration wants the ban to go into effect while the litigation continues.

The Spanish Defence Ministry said Monday that the migrants were then transferred to a Swedish ship and taken to Italy.

Half a million people have crossed the Mediterranean from Libya to Italy over the past four years, mainly sub-Saharan Africans who pay smugglers to shepherd them across the desert to Libya and onward to Europe in unseaworthy rafts.

In just the last four years, half a million people have crossed the Mediterranean from Libya to Italy, resulting in the deaths of an estimated 13,000 people, many who have drowned. The year 2016 was the deadliest year on record for refugees attempting to cross the Mediterranean to reach Europe, with more than 3,800 people perishing during the dangerous trip.

Migrant arrivals by sea to Italy are up about a third this year to roughly 60,000, and the United Nations High Commission for Refugees has recorded more than 1,700 dead or missing. More than 50 bodies have been brought to Italy in late May, the agency said.