Environmental groups opposed the transaction on the grounds that it impedes New York's greenhouse gas emissions goals.