Historic deal reached to limit powerful greenhouse gases