How Trump has flipped American foreign policy