Now that other countries’ leaders have come to expect rough treatment from Donald Trump, they are learning how to resist