Opponents of the wave of state legislation say the measures place health providers’ preferences over patients’ rights.