Caroline Ansell has resigned after voting for a Labour plan to offer free school meals in the holidays.