By the time Mr. Biden became president, he was faced with that deadline and the realization that the Taliban former prisoners, in a number that exceeded the number of American troops there, had been freed and were now armed.