Obama gets a new mandate on foreign policy