School threatened to ‘name and shame’ parents who can’t afford to pay for their kids’ school dinners