Lawmakers in Ohio on Wednesday approved legislation that would legalize marijuana use for medical purposes under certain circumstances, less than a year after recreational marijuana use was soundly defeated by Ohio voters.