The Department of Homeland Security issued a statement early Sunday saying that they plan on continuing to “enforce all of the president’s executive orders in a manner that ensures the safety and security of the American people.”

The DHS said the court order would not affect the overall implementation of the White House order and the court order affected a small number of travelers who were inconvenienced by security procedures upon their return.

“The president’s executive orders remain in place—prohibited travel will remain prohibited, and the U.S. government retains its right to revoke visas at any time if required for national security or public safety,” the statement said.

A federal judge issued an emergency order Saturday night temporarily barring the U.S. from deporting people from nations subject to President Donald Trump's travel ban, saying travelers who had been detained had a strong argument that their legal rights had been violated.

Stephen Miller, a senior adviser to the White House, said, "Nothing in the Brooklyn judge's order in anyway impedes or prevents the implementation of the president's executive order which remains in full, complete and total effect."

U.S. District Judge Ann Donnelly in New York issued the emergency order after lawyers for the American Civil Liberties Union filed a court petition on behalf of people from seven predominantly Muslim nations who were detained at airports across the country as the ban took effect.

The order barred U.S. border agents from removing anyone who arrived in the U.S. with a valid visa from Iraq, Syria, Iran, Sudan, Libya, Somalia and Yemen. It also covered anyone with an approved refugee application.

Homeland Security said the order affects a small amount of people traveling internationally.

The DHS said the order was the “first step towards reestablishing control over America's borders and national security.”

Trump’s travel ban sparked protests around the country at several international airports. Demonstrators ranged from a few dozen people to thousands.

Under Trump's order, it had appeared that an untold number of foreign-born U.S. residents now traveling outside the U.S. could be stuck overseas for at least 90 days even though they held permanent residency "green cards" or other visas. However, an official with the DHS said Saturday night that no green-card holders from the seven countries cited in Trump's order had been prevented from entering the U.S.

Trump billed his sweeping executive order as a necessary step to stop "radical Islamic terrorists" from coming to the U.S. It included a 90-day ban on travel to the U.S. by citizens of Iraq, Syria, Iran, Sudan, Libya, Somalia or Yemen and a 120-day suspension of the U.S. refugee program.

Trump's order also drew support from some Republican lawmakers who have urged more security measures for the refugee vetting program.

The DHS said in the statement that they “will faithfully execute the immigration laws, and we will treat all of those we encounter humanely and with professionalism.” They also added that they plan to ensure the safety of the American people by making sure those entering the U.S. pose no threat.

The Associated Press contributed to this report.