Just like with drug laws. They can make weed illegal to use. But that doesn't mean there will be compliance with the law. With mass non-compliance, those laws either get repealed, or they stop being enforced, or if still enforced, enforcement simply occurs for the most egregious examples, or sporadically and publicized to make an example out of the unlucky target.