Using Census data, the Department of Agricultures Economic Research Service tracks spending across government departments and agencies, breaking it out by area (rural and metro) and by functional category.
Link
http://www.wkkf.org/Pubs/Federal_Spending_for_Rural_00376_03977.pdf