Most basic research is funded by the government as there's no inherent profit motive. Research to make use of the foundational discoveries is funded by profit motive, as they get a monopoly on any working product. I'm pretty sure R&D is safe as there will always be profit to be made. You're also assuming congress isn't in bed with the industries, the ones who massively fund their campaigns and offer nice lobbying jobs afterwards.