The US President, who had promised the measures - called "extreme vetting" - during last year's election campaign, said he was making America safe from "radical Islamic terrorists" as he signed the executive order on Friday.
The decree means no visas will be issued for 90 days to migrants or visitors from Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen.
The order also indefinitely suspends the entry of Syrian refugees, and bans the resettlement of refugees from any country for four months. The separate judicial order in Alexandria forbids the government from removing about 60 legal permanent residents of the United States being detained at Dulles International Airport. Trump's reaction comes after the travel ban - that bans entry of even green-card holders from the seven countries - met with global outrage and huge protests across the United States.
US District Judge Ann Donnelly in NY issued the emergency order after the American Civil Liberties Union (ACLU) filed a petition on behalf of two Iraqi men detained at the John F Kennedy International Airport as the immigration ban took effect triggering protests at major airports across the country. "President Trump is right to make sure we are doing everything possible to know exactly who is entering our country".
Heller said this isn't only happening JFK, but also at other airports around the country.
When announcing the executive actions, officials said there was an exemption for immigrants and green card holders whose presence in the United States serves a national interest, but specifics on the measure's implications were not immediately clear. The judge neither allowed detainees to enter the country nor addressed the constitutionality of Trump's actions.
Protesters chanted, "No Trump!"
On Saturday, two Iraqi men, who were being detained at J.F.K airport after Trump's executive order was signed, filed a petition for emergency relief with the federal court.
"If they are thinking about an exception for Christians, in nearly any other legal context discriminating in favour of one religion and against another religion could violate the constitution", said Stephen Legomsky, a former chief counsel at US Citizenship and Immigration Services in the Obama administration. The 2017 cap was set at 50,000 people, compared with 85,000 designated by President Barack Obama for 2016.