Biden scrambles to limit damage to credibility from Afghanistan