Barack Obama actually said...
Our commitment there is to stay as long as it takes to get the job done in Afghanistan.
Context
Press Release - Remarks by European Foreign Ministers in Support of the New START Treaty
11/19/2010