Connecticut lawmakers approved legislation codifying as law Gov. Ned Lamont’s goals for a zero-carbon emissions from Connecticut’s electric supply by 2040, in addition to expanding two programs aimed at incentivizing large solar projects.