A New Jersey judge has granted class certification in a suit over drinking water that allegedly contains a cancer-causing chemical.