WASHINGTON: President Barack Obama signed a secret order in recent weeks authorising a more expansive mission for the military in Afghanistan in 2015 than originally planned, a move that ensures US troops will have a direct role in fighting in the war-ravaged country for at least another year.

Obama’s order allows US forces to carry out missions against the Taliban and other militant groups threatening American troops or the Afghan government, a broader mission than the president described to the public earlier this year, according to several administration, military and congressional officials with knowledge of the decision. The new authorisation also allows US jets, bombers and drones to support Afghan troops on combat missions.

In an announcement in the White House Rose Garden in May, Obama said the US military would have no combat role in Afghanistan next year, and that the missions for the 9,800 troops remaining in the country would be limited to training Afghan forces and to hunting the “remnants of Al-Qaida.”

The decision to change that mission was the result of a lengthy and heated debate that laid bare the tension inside the Obama administration between two often-competing imperatives: the promise Obama made to end the war in Afghanistan, versus the demands of the Pentagon that US troops be able to successfully fulfil their remaining missions in the country.

The internal discussion took place against the backdrop of this year’s collapse of Iraqi security forces in the face of the advance of the Daesh as well as the mistrust between the Pentagon and the White House that still lingers since Obama’s 2009 decision to “surge” 30,000 American troops to Afghanistan. Some of the president’s civilian advisers believe that decision was made only because of excessive Pentagon pressure, and some military officials believe it was half-baked and made with an eye on domestic politics.

Obama’s decision, made during a White House meeting in recent weeks with his senior national security advisers, came over the objection of some of his top civilian aides, who argued that American lives should not be put at risk next year in any operations against the Taliban — and that they should have only a narrow counterterrorism mission against al-Qaida.

But the military pushed back, and generals both at the Pentagon and Afghanistan urged Obama to define the mission more broadly to allow U.S. troops to attack the Taliban, the Haqqani network and other militants if intelligence revealed that the extremists were threatening American forces in the country.

The president’s order under certain circumstances would also authorise US air strikes to support Afghan military operations in the country and ground troops to occasionally accompany Afghan troops on operations against the Taliban.

“There was a school of thought that wanted the mission to be very limited, focused solely on Al-Qaida,” one US official said.

But, the official said, “the military pretty much got what it wanted.”

On Friday evening, a senior administration official insisted that US forces would not carry out regular patrols or conduct offensive missions against the Taliban next year.

“We will no longer target belligerents solely because they are members of the Taliban,” the official said. “To the extent that Taliban members directly threaten the United States and coalition forces in Afghanistan or provide direct support to Al-Qaida, however, we will take appropriate measures to keep Americans safe.”

In effect, Obama’s decision largely extends the current US military role for another year. Obama and his aides were forced to make a decision because the 13-year old mission, Operation Enduring Freedom, is set to end on December 31.

The matter of the military’s role in Afghanistan in 2015 has “been a really, really contentious issue for a long time, even more contentious than troop numbers,” said Vikram Singh, who worked on Afghanistan policy both at the State Department and the Pentagon during the Obama administration and is now at the Centre for American Progress in Washington.

US officials said that while the debate over the nature of the military’s role beginning in 2015 has lasted for years, two issues in particular have shifted the debate in recent months.

The first is the advance of Daesh forces across northern Iraq and the collapse of the Iraqi army, which has led to criticism of Obama for a military pullout of Iraq that left Iraqi troops ill-prepared to protect their soil.

This has intensified criticism of Obama’s Afghanistan strategy, which Republican and even some Democratic lawmakers have said adheres to an overly compressed timeline that would hamper efforts to train and advise Afghan security forces — potentially leaving them vulnerable to attack from Taliban fighters and other extremists in the meantime.

This new arrangement could blunt some of that criticism, although it is also likely to be criticised by some Democratic lawmakers who will say that Obama allowed the military to dictate the terms of the endgame in Afghanistan.

The second factor is the transfer of power in Afghanistan to President Ashraf Gani Ahmadzai, who has been far more accepting of an expansive US military mission in his country than his predecessor, Hamid Karzai.

According to a senior Afghan official and a former Afghan official who maintains close ties to his former colleagues, in recent weeks both Ahmadzai and his new national security adviser, Hanif Atmar, have requested the United States continue to fight Taliban forces in 2015 — as opposed to being strictly limited to operations against Al-Qaida. Ahmadzai also recently lifted the limits on American air strikes and joint raids that Karzai had put in place, the Afghan officials said.