The Supreme Court ruled that President Trump can limit refugees from coming into the U.S. for now, scrapping a federal appeals court ruling that would have limited the scope of Trump's travel ban.

The 9th Circuit Court of Appeals court last week said refugees with a formal assurance from a government agency, such as resettlement agencies, are exempt from Trump's travel ban. The travel ban temporarily blocked foreign nationals from coming to the U.S. from six Muslim-majority countries unless they have certain family ties in the U.S., a move the Trump administration said is needed to ensure national security.

The Trump administration asked the Supreme Court to scrap the appeals court ruling, and Justice Anthony Kennedy on Monday temporarily halted implementation of the appeals court order while the high court reviewed the dispute. Hawaii, which prevailed in the lower courts, urged the Supreme Court not to intervene in the matter.

The Supreme Court is set to hear oral arguments over the travel ban when its new term begins in October.