The collapse of the Afghan government and its security forces could be traced to a 2020 U.S. agreement signed by the Trump administration