There is no other realistic option besides backstabbing the Afghan government if the US does not intend to stay there in perpetuity.
Afghanistan has been in a perpetual state of war since 1978 at this point, with decades more ahead of it once the Taliban topples the government.