Increased food costs and the end of pandemic-era benefits contributed to a sharp rise in food shelf visits.