A recently approved measure would bar supermarkets from using algorithms to adjust the prices paid by individual shoppers.