President Trump approaches international disputes with a pragmatic calculus of cost, opportunity and legacy