Also, even supposing a criminal investigation was in violation of the appropriations laws (money appropriated to investigate one type of crime being illegally redirected to investigate another type of crime instead), that (as far as I know–IANAL) isn't an issue the accused has standing to raise in court.
A (possibly) real example of this happened under the Clinton and Obama administrations, when Republicans in Congress tried to appropriate money specifically to prosecute adult pornography, and the Justice Department (allegedly) illegally spent a lot of it on child pornography prosecutions instead. But even supposing the allegation is true, it was of no legal benefit to the accused.