In more than 20 states, SNAP recipients have been barred from using their benefits to buy soda, energy drinks and candy. People in five states sued over this.