A judge has ruled that a lawsuit that could disrupt Maryland’s fledgling medical marijuana industry can go to trial.