“The Taliban is scrambling to reach a deal with former Afghan officials to establish a government that could gain international recognition, keep aid