Marathon talks enable Europe to break deadlock over global-warming deal with major greenhouse-gas emitters.