Xi Jinping secured a precedent-breaking third leadership term while facing challenges including a slowing economy, frustration over his zero-COVID policy and increasing estrangement from the West.