The world’s two biggest CO2 emitters pledge to boost climate co-operation in an unexpected declaration.