CT governor candidates spent $40 million in record-setting race