The Federal Trade Commission said the drugstore chain’s technology disproportionately affected people of color.