After months of negotiations, the US and China have agreed to set targets for lowering their carbon emissions. It’s not going to solve climate change. But the deal is something to build on.