The Supreme Court is allowing the Trump administration to maintain its restrictive policy on refugees.

The justices have agreed to an administration request to block a lower court ruling that would have eased the refugee ban and allowed up to 24,000 refugees to enter the country before the end of October.

The order was not the court's last word on the travel policy that President Donald Trump first rolled out in January. The justices are scheduled to hear arguments on 10 October on the legality of the bans on travellers from six mostly Muslim countries and refugees anywhere in the world.

It's unclear, though, what will be left for the court to decide. The 90-day travel ban lapses in late September and the 120-day refugee ban will expire a month later.

White House spokeswoman Sarah Huckabee Sanders said on Tuesday night: “We are pleased that the Supreme Court has allowed key components of the order to remain in effect. We will continue to vigorously defend the order leading up to next month's oral argument in the Supreme Court.”

The administration has yet to say whether it will seek to renew the bans, make them permanent or expand the travel ban to other countries.

Lower courts have ruled that the bans violate the Constitution and federal immigration law. The high court has agreed to review those rulings. Its intervention so far has been to evaluate what parts of the policy can take effect in the meantime.

The justices said in June that the administration could not enforce the bans against people who have a “bona fide” relationship with people or entities in the United States. The justices declined to define the required relationships more precisely.

A panel of the San Francisco-based 9th US Circuit Court of Appeals upheld a district judge's order that would have allowed refugees to enter the United States if a resettlement agency in the US had agreed to take them in.

The administration objected, saying the relationship between refugees and resettlement agencies shouldn't count. The high court's unsigned, one-sentence order agreed with the administration, at least for now.

Activists protest Donald Trump's proposed Muslim ban Show all 11 1 /11 Activists protest Donald Trump's proposed Muslim ban Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty Activists protest Donald Trump's proposed Muslim ban People listen to speakers at a demonstration against racism and conservative presidential candidate Donald Trump's recent remarks concerning Muslims on December 10, 2015 in New York City. Dozens or demonstrators and activists converged at Columbus Circle to denounce the politics of Trump and the treatment of Muslim refugees both in America and Europe. Spencer Platt/Getty

The appeals court also upheld another part of the judge's ruling that applies to the ban on visitors from Iran, Libya, Somalia, Sudan, Syria and Yemen.

Grandparents and cousins of people already in the US can't be excluded from the country under the travel ban, as the Trump administration had wanted. The administration did not ask the Supreme Court to block that part of the ruling.