The move underscores how foreign leaders understand the best way to get what they want from the U.S. president is to shower him with praise.