Barack Obama actually said...
U.S. Armed Forces, including special operations forces, have conducted counterterrorism combat operations in Afghanistan against al-Qa'ida, the Taliban, and associated forces.
Context
Letter to Congressional Leaders on the Global Deployment of United States Combat-Equipped Armed Forces
12/04/2016