The former national security adviser said the Trump administration is handing the Taliban a victory.