The US will leave a small “peace keeping” force of 200 troops in Syria for an unspecified amount of time, reversing an order by Donald Trump for a full withdrawal.

The president abruptly announced in December that all of the 2,000 US troops stationed in the country would leave, declaring that Isis had been defeated.

The decision shocked officials within Mr Trump’s own administration, who argued that it would leave America’s Kurdish allies on the ground vulnerable, and that Isis was not yet truly finished.

Mr Trump now appears to have reconsidered the plan, opting for a residual and largely symbolic force to remain in the country.

“A small peace keeping group of about 200 will remain in Syria for period of time,” White House press secretary Sarah Sanders said Thursday, offering no more detail.

Syria at war: Fleeing the caliphate Show all 14 1 /14 Syria at war: Fleeing the caliphate Syria at war: Fleeing the caliphate Trucks full of women and children arrive from the last Isis-held areas in Deir ez-Zor, Syria Richard Hall/The Independent Syria at war: Fleeing the caliphate Zikia Ibrahim, 28, with her two-year-old son and 8-month-old daughter, after fleeing the Isis caliphate Richard Hall/The Independent Syria at war: Fleeing the caliphate Trucks full of women and children arrive from the last Isis-held areas in Deir ez-Zor, Syria. Richard Hall Richard Hall/The Independent Syria at war: Fleeing the caliphate Men who fled the last Isis-held area of Syria line up to be questioned by American and Kurdish intelligence officials Richard Hall/The Independent Syria at war: Fleeing the caliphate Trucks full of women and children arrive from the last Isis-held areas in Deir ez-Zor, Syria. Richard Hall Richard Hall/The Independent Syria at war: Fleeing the caliphate A young girl pulls her belongings after arriving Richard Hall/The Independent Syria at war: Fleeing the caliphate An SDF fighter hands out bread to women and children after they arrive Richard Hall/The Independent Syria at war: Fleeing the caliphate Sita Ghazzar, 70, after fleeing from the last Isis-held territory in Syria Richard Hall/The Independent Syria at war: Fleeing the caliphate A family from Russia who recently fled the last Isis-held area of Syria Richard Hall/The Independent Syria at war: Fleeing the caliphate Trucks full of women and children arrive from the last Isis-held areas in Deir ez-Zor, Syria. Richard Hall Richard Hall/The Independent Syria at war: Fleeing the caliphate Trucks full of women and children arrive from the last Isis-held areas in Deir ez-Zor, Syria. Richard Hall Richard Hall/The Independent Syria at war: Fleeing the caliphate Trucks full of women and children arrive from the last Isis-held areas in Deir ez-Zor, Syria. Richard Hall Richard Hall/The Independent Syria at war: Fleeing the caliphate Trucks full of women and children arrive from the last Isis-held areas in Deir ez-Zor, Syria. Richard Hall Richard Hall/The Independent Syria at war: Fleeing the caliphate Richard Hall Richard Hall/The Independent

The reversal was welcomed by Kurdish-led Syrian Democratic Forces (SDF), Washington’s ally in the fight against Isis in Syria. The group is on the verge of capturing the last Isis-held territory in Syria, but it warned at the time that US support was essential for ensuring the terror group’s complete defeat.

Abdulkarim Omar, co-chair of foreign relations of the political wing of the SDF told The Independent that the decision has been received “positively”.

“This decision may encourage other European states, particularly our partners in the international coalition against terrorism, to keep forces in the region,” he added.

The US withdrawal had raised the prospect that Turkey would follow through on a promise to cross the border to attack the SDF, which it views as a terrorist group.

Turkey’s president, Recep Tayyip Erdogan, has repeatedly threatened to cross into Syria to set up a “safe zone”, ostensibly to protect its borders. But the presence of US forces had acted as a deterrent to a conflict between the two US allies.

Mr Trump reportedly spoke with Mr Erdogan on Thursday. “On Syria, the two presidents agreed to continue coordinating on the creation of a potential safe zone,” the White House said in a statement about the call.

One of the most vocal critics of the withdrawal was Republican senator Lindsey Graham, a Trump ally and a member of the Senate Armed Services Committee. Mr Graham applauded the president’s change of heart on Thursday.

“This will ensure Isis does not return and Iran does not fill the vacuum that would have been left if we completely withdrew. This also ensures Turkey and SDF elements that helped us defeat Isis will not go into conflict,” he said in a statement.

Mr Trump announced the decision to withdraw on Twitter in December, writing: “We have defeated Isis in Syria, my only reason for being there during the Trump presidency.”

The announcement prompted the resignation of defence secretary Jim Mattis, and the head of the anti-Isis coalition, Brett McGurk.

Since then, the SDF have continued battling Isis in its last holdout in the eastern Deir ez-Zor province. The caliphate has been reduced to a few dozen tents in the village of Baghouz, but a few hundred fighters are holding an unknown number of civilians and refusing to surrender.

The SDF said it would try to evacuate the last of the civilians in Isis territory on Friday before launching an attack.

“If we succeed in evacuating all the civilians, at any moment we will take the decision to storm Baghouz or force the terrorists to surrender,” the group’s spokesperson, Mustafa Bali said.

Human Rights Watch has expressed concern that not enough care is being taken to protect civilians fleeing the area. It said in a report released Friday that the town had been destroyed by almost constant artillery and air strikes.