The decision is a modest but welcome step toward rectifying the injustice of criminalizing conduct that violates no one’s rights.