Merz's visit, following visits by leaders from France, and the U.K., came as the EU looks to shore up relationships with Beijing as the rift with the U.S. widens.