American chipmakers had a toxic problem. Then they outsourced it