The Supreme Court of the United States on Wednesday said the Trump administration is allowed to deny asylum to those who refused to seek refuge in another country first before coming to the United States, the Associated Press reported.

Justices Sonia Sotomayer and Ruth Bader Ginsburg dissented with the rest of their colleagues.

“Once again the Executive Branch has issued a rule that seeks to upend longstanding practices regarding refugees who seek shelter from persecution,” Sotomayer wrote in her dissenting opinion, the Washington Post reported.. “Although this Nation has long kept its doors open to refugees — and although the stakes for asylum seekers could not be higher — the Government implemented its rule without first providing the public notice and inviting the public input generally required by law.”

The decision comes after a federal judge in California implemented a temporary, nationwide injunction on the asylum rules on Tuesday.

President Donald Trump took to Twitter to celebrate the news:

BIG United States Supreme Court WIN for the Border on Asylum! https://t.co/9Ka00qK1Ob — Donald J. Trump (@realDonaldTrump) September 11, 2019

This post has been updated with additional information.