The US. and China have agreed to cooperate to curb climate change, just days before President Biden hosts a virtual summit of world leaders to discuss the issue.