The ban was approved by the state’s Republican-dominated Legislature.