The decision arrives nearly 35 years after the dye was prohibited in cosmetics because of potential cancer risk.