This is after the attorney general spent years investigating the companies after complaints of dozens of unfinished swimming pools.