Several dental and medical organizations opposed the bill, saying it would lead to more health problems in the state.