US envoy John Kerry will hold talks in Shanghai ahead of a climate summit hosted by President Biden.