Counties receive millions in federal funds