Judge halts bans on food stamp candy and soda