The ruling puts increased pressure on illegal marijuana sales in the state as regulators work to grow the legal market for the drug.