Xi Jinping’s upgrade of ties with Budapest highlights Beijing’s willingness to reward loyalty with investment and trade