Federal funds made available to State or local governments under other programs may not be used by the State or local government for cost-sharing purposes under grant provisions of this chapter, except that Federal funds of a program financed wholly by Federal funds may be used to pay a pro-rata share of such cost sharing. State or local government funds used for cost sharing on other federally assisted programs may not be used for cost sharing under grant provisions of this chapter.