The rush to curry Trump's favour makes clear just how much global leaders learned their lesson from his first term, when the quickest way to the president's heart was to offer investment