Protesters assemble at John F. Kennedy International Airport in New York, Saturday, Jan. 28, 2017, after earlier in the day two Iraqi refugees were detained while trying to enter the country. On Friday, Jan. 27, President Donald Trump signed an executive order suspending all immigration from countries with terrorism concerns for 90 days. Countries included in the ban are Iraq, Syria, Iran, Sudan, Libya, Somalia and Yemen, which are all Muslim-majority nations. (AP Photo/Craig Ruttle)
Protesters assemble at John F. Kennedy International Airport in New York, Saturday, Jan. 28, 2017, after earlier in the day two Iraqi refugees were detained while trying to enter the country. On Friday, Jan. 27, President Donald Trump signed an executive order suspending all immigration from countries with terrorism concerns for 90 days. Countries included in the ban are Iraq, Syria, Iran, Sudan, Libya, Somalia and Yemen, which are all Muslim-majority nations. (AP Photo/Craig Ruttle)
PHOTO: Craig Ruttle/AP
Now playing
01:33
Protesters swarm airports nationwide
muslim ban jake tapper fact check orig nws_00002104.jpg
muslim ban jake tapper fact check orig nws_00002104.jpg
Now playing
03:45
Is travel ban a 'total and complete' Muslim ban?
PHOTO: CNN/Madeleine Stix
Now playing
01:09
Farhana Khera: She's fighting Trump's travel ban
US President Donald Trump steps off Air Force One upon arrival at Andrews Air Force Base in Maryland on December 2, 2017. 
Trump is returning to Washington, DC after attending fundraisers in New York, New York.
US President Donald Trump steps off Air Force One upon arrival at Andrews Air Force Base in Maryland on December 2, 2017. Trump is returning to Washington, DC after attending fundraisers in New York, New York.
PHOTO: MANDEL NGAN/AFP/Getty Images
Now playing
01:48
Official: Trump's rhetoric creating problems
WASHINGTON, DC - FEBRUARY 16:  U.S. President Donald Trump signs H.J. Res. 38, disapproving the rule submitted by the US Department of the Interior known as the Stream Protection Rule in the Roosevelt Room of the White House on February 16, 2017 in Washington, DC.  The Department of Interior
WASHINGTON, DC - FEBRUARY 16: U.S. President Donald Trump signs H.J. Res. 38, disapproving the rule submitted by the US Department of the Interior known as the Stream Protection Rule in the Roosevelt Room of the White House on February 16, 2017 in Washington, DC. The Department of Interior's Stream Protection Rule, which was signed during the final month of the Obama administration, "addresses the impacts of surface coal mining operations on surface water, groundwater, and the productivity of mining operation sites," according to the Congress.gov summary of the resolution. (Photo by Ron Sachs-Pool/Getty Images)
PHOTO: Pool/Getty Images North America/Getty Images
Now playing
01:23
Trump's words on Muslims come back to haunt him
Muslim Americans Tell Trump: Thanks, but no thanks_00003824.jpg
Muslim Americans Tell Trump: Thanks, but no thanks_00003824.jpg
PHOTO: CNN
Now playing
04:42
Muslim American: Trump using iftar dinner as a prop
Trump drive them out terrorists sot_00000000.jpg
Trump drive them out terrorists sot_00000000.jpg
PHOTO: Host TV
Now playing
01:00
Trump to Muslim world: Drive out terrorists
PHOTO: Allie Schmitz/CNNMoney
Now playing
09:31
Are Trump's reckless tweets actually a danger?
Senior advisor to U.S. President Donald Trump Stephen Miller watches as U.S. Attorney General Jeff Sessions delivers remarks during the daily White House press briefing March 27, 2017 in Washington, DC.
Senior advisor to U.S. President Donald Trump Stephen Miller watches as U.S. Attorney General Jeff Sessions delivers remarks during the daily White House press briefing March 27, 2017 in Washington, DC.
PHOTO: Win McNamee/Getty Images
Now playing
01:43
Travel ban author writes Trump speech on Islam
Judge Michael Hawkins
Judge Michael Hawkins
PHOTO: CNN
Now playing
02:31
Judge: Did Trump ever disavow Muslim ban?
In this Dec. 2, 2015, photo, Republican presidential candidate Donald Trump speaks during a campaign rally at the Prince William County Fair Ground in Manassas, Va. Trump tapped a man to be a senior business adviser to his real-estate empire even after the mans past involvement in a major mafia-linked stock fraud scheme became public. Felix Sater pleaded guilty to one count of racketeering in 1998. His conviction remained secret for nearly a decade as he worked as a government informant and an executive at the Bayrock Group, a real estate firm that partnered with Trump.  (AP Photo/Cliff Owen)
In this Dec. 2, 2015, photo, Republican presidential candidate Donald Trump speaks during a campaign rally at the Prince William County Fair Ground in Manassas, Va. Trump tapped a man to be a senior business adviser to his real-estate empire even after the mans past involvement in a major mafia-linked stock fraud scheme became public. Felix Sater pleaded guilty to one count of racketeering in 1998. His conviction remained secret for nearly a decade as he worked as a government informant and an executive at the Bayrock Group, a real estate firm that partnered with Trump. (AP Photo/Cliff Owen)
PHOTO: Cliff Owen/AP/File
Now playing
01:24
The things Donald Trump has said about Muslims
Now playing
01:12
Trump's refugee ban and the war on ISIS
Republican presidential candidate Donald J. Trump speaks at the Saint Andelm College New Hampshire Institute of Politics in Manchester, New Hampshire June 13, 2016.
Republican presidential candidate Donald J. Trump speaks at the Saint Andelm College New Hampshire Institute of Politics in Manchester, New Hampshire June 13, 2016.
PHOTO: TIMOTHY A. CLARY/AFP/AFP/Getty Images
Now playing
01:24
Watch Donald Trump evolve on banning Muslim immigration
PHOTO: CNN
Now playing
03:11
Reality check: Truth about refugees, terrorism
Protesters assemble at John F. Kennedy International Airport in New York, Saturday, Jan. 28, 2017, after earlier in the day two Iraqi refugees were detained while trying to enter the country. On Friday, Jan. 27, President Donald Trump signed an executive order suspending all immigration from countries with terrorism concerns for 90 days. Countries included in the ban are Iraq, Syria, Iran, Sudan, Libya, Somalia and Yemen, which are all Muslim-majority nations. (AP Photo/Craig Ruttle)
Protesters assemble at John F. Kennedy International Airport in New York, Saturday, Jan. 28, 2017, after earlier in the day two Iraqi refugees were detained while trying to enter the country. On Friday, Jan. 27, President Donald Trump signed an executive order suspending all immigration from countries with terrorism concerns for 90 days. Countries included in the ban are Iraq, Syria, Iran, Sudan, Libya, Somalia and Yemen, which are all Muslim-majority nations. (AP Photo/Craig Ruttle)
PHOTO: Craig Ruttle/AP
Now playing
01:33
Protesters swarm airports nationwide
PHOTO: Jeremy Moorhead
Now playing
03:01
Being Muslim and American in the year of Donald Trump

Story highlights

Trump's unilateral moves reflect the President's desire to quickly make good on his campaign promises

But they also encapsulate the pitfalls of an administration largely operated by officials with scant federal experience

The White House overruled DHS regarding allowing green card holders to enter the country

(CNN) —  

When President Donald Trump declared at the Pentagon Friday he was enacting strict new measures to prevent domestic terror attacks, there were few within his government who knew exactly what he meant.

Administration officials weren’t immediately sure which countries’ citizens would be barred from entering the United States. The Department of Homeland Security was left making a legal analysis on the order after Trump signed it. A Border Patrol agent, confronted with arriving refugees, referred questions only to the President himself, according to court filings.

Trump's immigration order: Which countries are affected?

  • Iran
  • Iraq
  • Syria
  • Sudan
  • Libya
  • Yemen
  • Somalia

Saturday night, a federal judge granted an emergency stay for citizens of the affected countries who had already arrived in the US and those who are in transit and hold valid visas, ruling they can legally enter the US.

Trump’s unilateral moves, which have drawn the ire of human rights groups and prompted protests at US airports, reflect the President’s desire to quickly make good on his campaign promises. But they also encapsulate the pitfalls of an administration largely operated by officials with scant federal experience.

It wasn’t until Friday – the day Trump signed the order banning travel from seven Muslim-majority countries for 90 days and suspending all refugee admission for 120 days – that career homeland security staff were allowed to see the final details of the order, a person familiar with the matter said.

The result was widespread confusion across the country on Saturday as airports struggled to adjust to the new directives. In New York, two Iraqi nationals sued the federal government after they were detained at John F. Kennedy International Airport, and 10 others were detained as well.

In Philadelphia, a Syrian family of six who had a visa through a family connection in the US was placed on a return flight to Doha, Qatar, and Department of Homeland Security officials said others who were in the air would be detained upon arrival and put back on a plane to their home country.

Asked during a photo opportunity in the Oval Office Saturday afternoon about the rollout, Trump said his government was “totally prepared.”

“It’s working out very nicely,” Trump told reporters. “You see it at the airports. You see it all over. It’s working out very nicely and we’re going to have a very, very strict ban, and we’re going to have extreme vetting, which we should have had in this country for many years.”

The policy team at the White House developed the executive order on refugees and visas, and largely avoided the traditional interagency process that would have allowed the Justice Department and homeland security agencies to provide operational guidance, according to numerous officials who spoke to CNN on Saturday.

Homeland Security Secretary John Kelly and Department of Homeland Security leadership saw the final details shortly before the order was finalized, government officials said.

Friday night, DHS arrived at the legal interpretation that the executive order restrictions applying to seven countries – Iran, Iraq, Libya, Somalia, Syria, Sudan and Yemen – did not apply to people with lawful permanent residence, generally referred to as green card holders.

The White House overruled that guidance overnight, according to officials familiar with the rollout. That order came from the President’s inner circle, led by Stephen Miller and Steve Bannon. Their decision held that, on a case by case basis, DHS could allow green card holders to enter the US.

There had been some debate whether green card holders should be even allowed to board international flights. It was decided by the Department of Homeland Security they could fly to the US and would be considered on a case-by-case basis after passing a secondary screening.

But the guidance sent to airlines on Friday night, obtained by CNN, said clearly, “lawful permanent residents are not included and may continue to travel to the USA.”

As of Saturday afternoon, Customs and Border Protection continued to issue the same guidance to airlines as it did Friday, telling airlines that fly to the US that green card holders can board planes to the US but they may get extra scrutiny on arrival, according to an airline official.

Before the President issued the order, the White House did not seek the legal guidance of the Office of Legal Counsel, the Justice Department office that interprets the law for the executive branch, according to a source familiar with the process.

White House officials disputed that Sunday morning, saying that OLC signed off and agency review was performed.

A source said the creation of the executive order did not follow the standard agency review process that’s typically overseen by the National Security Council.

Separately, a person familiar with the matter said career officials in charge of enforcing the executive order were not fully briefed on the specifics until Friday. The officials were caught off guard by some of the specifics and raised questions about how to handle the new banned passengers on US-bound planes.

Regarding the green card holders and some of the confusion about whether they were impacted, the person familiar with the matter said if career officials had known more about the executive order earlier, some of the confusion could have been avoided and a better plan could be in place.

Administration officials also defended the process Saturday. They said the people who needed to be briefed ahead of time on the plane were briefed and that people at the State Department and DHS who were involved in the process were able to make decisions about who to talk and inform about this.

Bannon and Miller were running point on this order and giving directives regarding green cards, according to a Republican close to the White House.

But even after the Friday afternoon announcement, administration officials at the White House took several hours to produce text of the action until several hours after it was signed. Adviser Kellyanne Conway even said at one point it was not going to be released before eventually it did get sent out.

Administration officials also seemed unsure at first who was covered in the action, and a list of impacted countries was only produced later on Friday night, hours after the President signed the document at the Pentagon.

This story has been updated to include the White House’s response on the issue of Justice Department review.

CNN’s Rene Marsh and Athena Jones contributed to this report.