Maryland passed the first U.S. law banning data-driven price hikes on groceries, but it stops short of restricting electronic shelf labels or frequent price changes.