Florida’s medical marijuana law cleared a major legal hurdle Wednesday thanks to a state judge’s ruling.

Legislators voted 20 to 14 to legalize the strain of low-potency marijuana known as Charlotte’s Web.

State lawmakers approved the law in 2014. But legal challenges over rules drawn up by the state department of health delayed putting it into effect.

After Wednesday’s ruling, Charlotte’s Web should be available to treat epilepsy in children and patients with advanced cancer by the end of the year.

The judge’s ruling also means the state can begin licensing growers possibly as early as this summer.