It's not quite that general, but is pretty close. The "Dickey Amendment" requires that "none of the funds made available for injury prevention and control at the Centers for Disease Control and Prevention (CDC) may be used to advocate or promote gun control."
https://en.wikipedia.org/wiki/Dickey_Amendment_(1996)