Uh, I'm pretty sure there already are public schools that have outlawed bringing your own lunch from home, which is the exact same as requiring students to buy lunch from the school.
Are there?
I know it was tried in Chicago, but ultimately the policy was rescinded.