The move will bring enormous tax benefits to medical marijuana producers and may speed research into its effects, experts say.