A superior court judge has ordered the state to end its ban on the sale of vaping products for medical marijuana patients.