WARSAW — Two weeks of United Nations climate talks ended Saturday with a pair of last-minute deals keeping alive the hope that a global effort can ward off a ruinous rise in temperatures.