The war in Afghanistan was not a wasted effort. Our brave troops and our Afghan and NATO allies decimated al Qaeda and the Afghan branch of the Islamic State and allowed us to strengthen our defenses here at home and build a network to fight terrorism around the globe.