The IRS is facing substantial cuts to funds meant to rebuild its workforce and modernize its legacy IT systems over the next decade, as part of a deal to raise the debt ceiling and avoid a first-ever government default.