Connecticut lawmakers pass sweeping energy bill