In my experience, the hesitancy to contribute/ pay open source projects comes more from the contractors versus the government.
That could happen. One of the easiest ways of handling the situation would be to sign an agreement with an organization like Tidelift, who pass money on to OSS projects to keep handling the dev work.