A revised executive order signed by President Donald Trump Monday removes Iraq from the list of countries whose nationals will face restrictions on entering the United States.

The order, effective March 16, still restricts travel from Syria, Iran, Sudan, Libya, Somalia and Yemen. It replaces a previous set of restrictions that were halted by a federal court order.

In a press conference Monday announcing the signing of the order, Secretary of State Rex Tillerson said the state department worked with the government of Iraq to implement new security measures. The order says those efforts include enhanced travel documentation and information sharing.

"This revised order will bolster the security of the United States and her allies," Tillerson said.

The order says a "close cooperative relationship between the United States and the democratically elected Iraqi government, the strong United States diplomatic presence in Iraq, the significant presence of United States forces in Iraq, and Iraq's commitment to combat ISIS justify different treatment for Iraq."

The revised order does not apply to lawful permanent residents, dual nationals traveling on a passport issued by a country not named in the order, travelers on diplomatic visas, individuals who have been granted asylum and refugees who have already been admitted to the United States.

It allows visas to be issued on a case-by-case basis to groups including young children, adoptees, foreign nationals seeking to live with a spouse or other close relative, individuals in need of "urgent medical care" and previously admitted students seeking to re-enter the U.S. to continue studies.

"Unregulated, unvetted travel is not a universal privilege, especially when national security is at stake," Homeland Security Secretary John Kelly said during the press conference.

The order suspends refugee admissions for 120 days to allow for a review of the application and screening processes, then sets a cap of 50,000 admissions for the 2017 fiscal year.

U.S. Attorney General Jeff Sessions said there are more than 300 people who entered the U.S. as refugees and are now under FBI investigation for "potential terrorism-related activities."

U.S. Sen. Markey released a statement shortly after the signing, blasting the series of orders as "a bad movie with a bad sequel."

"The new travel ban will continue to keep families separated and hurt universities and businesses in Massachusetts that have students and employees seeking to come to the United States," Markey said.

Massachusetts Attorney General Maura Healey, who joined a lawsuit against the original order on behalf of the state, said before the new version was released that her office would review any new order "very closely and leave everything on the table."

Healey said in a Boston Herald Radio interview that Trump's initial restrictions were "really reckless," leaving foreign students, researchers and others stuck overseas and unable to return to the U.S.

"I hope he's learned a lesson and will do things differently going forward, but today there hasn't been a whole lot of evidence of his willingness to listen and engage," she said Monday morning.

Gov. Charlie Baker had also criticized the initial order, writing a letter to Kelly last month saying he was "troubled" by the stop to refugee admissions and believes the federal government should "reject broad, 'blanket' bans on immigration from particular countries."

Massachusetts Democratic Party Chair Gus Bickford said the new order would ban "from entering our country solely based on what religion they practice."

"This is not about national security, it's about playing politics and ratcheting up fear and discrimination," Bickford said. "While others may be afraid to call this what it is, we are not. This is a Muslim ban that, many national security experts agree, will make us less safe. Unfortunately, President Trump is continuing to prove that a leopard can't change its spots."

"President Trump's original executive order stranded travelers, upended families, disrupted businesses and institutions globally, and faced many federal lawsuits. The ACLU of Massachusetts will closely monitor this new Executive Order and assess its validity," Matthew Segal, legal director at the ACLU of Massachusetts, said in a statement Monday. "We remain proud of our urgent work in the last several weeks, and we stay deeply committed to protecting freedoms of all Massachusetts residents - and challenging any actions we believe to be illegal, unconstitutional and dangerous."