President Donald Trump's travel ban barring citizens of seven predominantly Muslim nations entry into the U.S. has sparked protests around the country.

A federal judge in New York Saturday night issued an emergency order temporarily barring the U.S. from deporting people who arrived with valid visas or an approved refugee application. But Trump's immigration ban caused chaos earlier in the day.

Lawyers and advocates working at the airport said they didn't have a hard count on the number of people taken into custody after getting off their flights.

Many took to Twitter to express their frustrations with the ban, including former Democratic nominee Hillary Clinton. Clinton said she stands with those across the nation, adding, “This is not who we are.”

“Today's actions have tarnished America’s standing as a beacon of hope for the free world, and there has been scant credible and confirmed information available throughout the day about the impact of the president's executive order or those detained.” Chicago’s Mayor Rahm Emanuel said in a statement. He added, “I am calling on the federal government to immediately produce a list of the names of anyone currently being detained at O'Hare or Midway Airports, and calling on those unjustly affected to immediately be released and allowed to access legal counsel.”

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.

Two members of Congress, New York Democrats Jerrold Nadler and Nydia Velazquez, joined several hundred protesters who spent part of the day at Kennedy airport trying to win the release of about a dozen people they said had been detained.

Nadler (D-Manhattan) and Velazquez (D-Brooklyn) announced the number of refugees held at the airport. “This should not happen in America. We shouldn’t have to demand the release of refugees one by one,” the two members of Congress said in a statement.

Protests around the country, ranged from a few dozen people to thousands of demonstrators.

At Los Angeles International Airport, lawyer Talia Inlender said an Iranian woman was detained after arriving on a flight from Amsterdam with her 1-year-old American son. Inlender said she had been approved to become an American citizen and was scheduled to take her naturalization oath in February.

Trump said the goal of the temporary travel restriction was to keep out potential terrorists.

Hundreds of protesters blocked the street outside at San Francisco International Airport's international terminal to express their opposition to the barring of some people from Muslim-majority nations.

People in the crowd at Kennedy airport chanted "Let them in." Celebrities including "Sex and the City" actress Cynthia Nixon joined the demonstration.

The detainees in New York included two Iraqis who had previously been given permission to come to the U.S. because of their ties to the U.S. military.

One of them, Hameed Khalid Darweesh, who had worked as an interpreter for the U.S. Army after it invaded Iraq in 2003, emerged from custody to cheers from the crowd in the mid-afternoon.

He pronounced the U.S. "the land of freedom" home to "the greatest people in the world" upon his release, but also expressed dismay about having been initially held.

New York Gov. Andrew Cuomo, a Democrat, said he had directed state lawyers and the agency that controls Kennedy to "explore all legal options" to assist anyone detained at New York airports.

"I never thought I'd see the day when refugees, who have fled war-torn countries in search of a better life, would be turned away at our doorstep," Cuomo said. "This is not who we are, and not who we should be."

Demonstrators outside San Diego International Airport also protesting the ban chanted "No hate, no fear, everyone is welcome here."

The Associated Press contributed to this report.