Maryland’s overturned law restricted the price of generic drugs, and had been hailed as a model for other states. It’s one of a number of state initiatives designed to combat rapidly rising drug prices.