Trump’s exercise of raw power upends world order, sending friends and foes reeling