Agreement reached over smelter cleanup