More than three dozen former factory workers have settled their multimillion-dollar five-year legal battle against Siemens Corp. and General Dynamics Corp. over trichloroethene and other toxic chemicals they allege the companies carelessly dumped into drinking water, causing them to develop cancer.