Barack Obama actually said...
The United States remains in an armed conflict, including against the Taliban, and active hostilities remain ongoing.
Context
Letter to Congressional Leaders on the Global Deployment of United States Combat-Equipped Armed Forces
12/04/2016