A dizzying array of rules govern what can be bought with SNAP dollars, confusing grocery stores and consumers.