Barack Obama recalled how the Trump administration had portrayed the military campaign as a success, before questioning its consequences months later.