Ahead of a state dinner with President Donald Trump, China’s Xi Jinping is courting global influence.