From alienating allies to praising adversaries, President Trump appears set to abandon decades of American foreign policy.