The Obama administration is reversing its plans to cut the amount of U.S. troops in Afghanistan to 5,500 by the end of the year, appeasing military leaders who want to keep more troops into 2016, U.S. officials say.

Officials have said the administration is poised to slow the withdrawal of forces and probably will allow most of the 9,800 American troops to remain in the embattled country, although no final decision on numbers has been made yet.

There have also been discussions to keep counterterrorism troops into 2015 and keep some in the country or be near Afghanistan in 2016.

There are about 2,000 U.S. troops conducting counterterrorism missions and military leaders have argued that they will need to continue their efforts to pursue remnants of Al Qeada and to monitor the Islamic State.

Officials expected President Obama to use a Washington visit by Afghan President Ashraf Ghani this month as the time to announce his decision on a new withdrawal timeline.

U.S. officials familiar with the debate said it's not clear yet whether the White House will agree to a small, symbolic decrease by the end of this year or insist on a larger cut. They note that there is some stiff opposition to any change, largely from national security adviser Susan Rice.

In recent weeks, Pentagon leaders, including Defense Secretary Ash Carter, have acknowledged the discussions about slowing the pace of troop withdrawal. But they increasingly are confident that the military will get its way and keep a robust force in Afghanistan beyond year's end.

The administration, however, has shown no inclination so far for going beyond 2016; that's a hard line drawn by the president when he announced the withdrawal plan.

The 2016 deadline is considered to be cruicial for Obama, who promised to remove all troops out of Afghanistan by the end of his presidency, ending America’s longest war.

Military leaders want to keep what they consider a "modest" number of troops in Afghanistan longer in order to protect America's investment and provide as much training and advice possible to Afghan forces. Maintaining a more stable number of troops, military leaders have argued, would allow better support of the Afghans during this summer's fighting season and better prepare them for 2016 battles.

Members of Congress, including Sen. John McCain, chairman of the Senate Armed Services Committee, also have expressed concerns about a sharp drawdown this year. During a hearing last month, McCain, R-Ariz., said a lack of presence in Afghanistan would create a vacuum and "allow terrorists to foment the same disaster in Afghanistan as we have seen in Iraq -- growing instability, terrorist safe havens and direct threats to the United States."

Obama’s original plan was to reduce the number of U.S. troops to 5,500 by the end of 2015 and take embassy-based security forces out by the end of 2016.

When Carter was in Kabul for meetings with his military leaders in February, he told reporters that the new thinking on troop levels was fueled by the improving relations between the U.S. and Afghan governments.

The unity government of Ghani and the chief executive, Abdullah Abdullah, offers new promise for a more effective partnership with Washington in stabilizing the country, Carter said during the visit. U.S. officials grew impatient with the former president, Hamid Karzai, who sometimes publicly criticized the U.S. military and took a dimmer view of partnering with it.

Afghan leaders have made it clear that they would like to have U.S. troops present for as long as possible because of concerns raised by the growing threat of ISIS in Afghanistan.

In testimony before McCain's committee last month, Gen. John Campbell, the top U.S. commander in Afghanistan, said he has seen evidence of recruiting by IS and signs that that some Taliban members are breaking off and declaring allegiance to that group.

Campbell also told reporters during the Carter visit last month that the withdrawal timeline options he presented were in line with Obama's commitment to withdraw all troops by the end of next year.

Campbell has argued that reducing the force to 5,500 by the end of the year would disrupt efforts to train and advise the Afghan military.

Military leaders also worry that cutting the overall force to that degree would reduce support to the counterterrorism mission and probably force a cut in those efforts.

The Associated Press contributed to this report