A friend of mine, who is a lawyer and does HR for the federal gov't, spent about a week helping me get my fed resume tightened up and I still got nothing. I don't even care about the pay cut. It just seems like interesting work.
A nice balance might be working somewhere as a civilian contractor for those government projects.
There is less inherent risk for public sector jobs than for companies that can go bankrupt. Hence for the contract value to be the same, the pay needs to be a bit lower.
They can absolutely make adjustments if congress needed or wanted to. The DoD as of 2019 does direct officer commissions for cybersecurity roles bringing people in as majors IIRC (it's still not as good pay as civilian cybersecurity roles but the gap is smaller and it has the prestige and lifetime benefits of being an officer).