The trip to Beijing marks the first by a US president in nearly a decade, after Trump last visited in 2017.