Obama: US will stay in Afghanistan until the ‘job is done’