Each official and department of the state having charge of the administering of funds for the relief of indigents may contribute and pay any of the funds subject to his disposal to any school district within the state, to be used by the district for the purchase of school meals for needy pupils. Every county, city and county, and city within the state may pay any of its funds available for the relief of indigents to any school district, within or partly within the county, city and county, and city for this purpose.