CLEVELAND (Reuters) - 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.

A jar of medical marijuana is displayed at the medical marijuana farmers market at the California Heritage Market in Los Angeles, California July 11, 2014. REUTERS/David McNew

The bill, approved by both chambers of the state’s Republican-led legislature, heads to Republican Governor John Kasich for his signature as his office said on Wednesday that he will review the bill.

During the last few years, state legislatures and voters in the United States have been much more receptive to making the use of marijuana legal for medical purposes than for recreational use.

Some 24 states and Washington D.C. currently allow some type of medical marijuana use while only a handful of states allow for recreational use. It remains illegal on the federal level.

The Ohio legislation is more limiting than some in that it only allows patients with specific medical conditions to use an oil, edible, tincture or vapor form of marijuana prescribed by a physician licensed in the state, starting in 2017.

“This bill is not perfect, but it’s what Ohio patients need,” Ohio Senator Kenny Yuko, a Democrat, said before his house approved the bill.

“Marijuana is not a gateway drug, but a gateway off drugs.”

Medical marijuana users would not be allowed to smoke or grow their own marijuana under the measure, which also would create a commission responsible for regulating and licensing of all operations of the drug.

In November, Ohio voters soundly rejected a measure that would have made it the first U.S. Midwestern state to legalize the recreational use of marijuana.

Lawmakers from both parties voted for and against the bill on Wednesday. Some opponents of the measure have said that the qualifying list of medical conditions is too limited.

The measure was fast-tracked to head off a possible less-restrictive medical marijuana ballot initiative in November.

In a poll released in early May, 90 percent of Ohio voters supported the legalization for medical marijuana.