He also contended that Ms. Hochul violated the state climate law, known as the Climate Leadership and Community Protection Act, which requires the governor to slash greenhouse gas emissions.