Advocates have been trying to establish a system since medical marijuana was legalized 15 years ago. The estimated 13,000 patients approved for the drug have generally been left to buy it on the black market or grow it on their own.