The board of supervisors of any county or the legislative body of any city may appropriate money from the general fund of such county or city for the use, benefit, or assistance of the National Guard or Naval Militia or for National Guard or Naval Militia purposes within such county or city only.