This is not an issue for the federal government to solve. States should set up their own systems as needed to solve their own unique needs. This is how the system of government is supposed to work in the US.
It’s just the decent, moral thing to do. Such a guardrail is appropriate at the federal level.
And yet: kids go hungry. It happens, and so we should not allow it. If individual states choose to allow kids to go hungry, then those states should not be allowed to make that choice.
That’s why federal intervention is warranted. States don’t seem to be doing the right thing.
However, education is at the state level, not the federal level. Individual states should fund their own school lunches as needed.