The SNP had promised to introduce free school meals for all primary pupils before the next Holyrood election.