Troops leaving Iraq with heads held high: Obama