Freedom of speech does not imply freedom of funding.
The first amendment is specifically about preventing government reprisals for speech. If I would have won a federal grant, but was denied it because I said "trans rights," that's the definition of a first amendment violation.
If a scientist currently or previously spammed papers of the form "why Nazis were right all along", we should all hope the government doesn't fund that subject or person.
The mass retraction of previously published papers is ethically concerning, but choice of who/what to fund in future is always completely in-scope for leadership to choose, regardless of whether you agree with the particular decision.
You can't oppose chaos while giving up on rigor yourself.