In Kabul, Obama highlights foreign policy record