Also, you mentioned the Fed, which isn't the same thing as the US gov't, right?
Ginnie Mae is part of the government as well (also mortgages). Fannie/Freddie are GSE's but currently under directly government control since the financial crisis.
I'm not sure how the accounting works, but they are somewhat autonomous and have their own balance sheets.
The interaction of the accounting rules and the new tax plan was fascinating too because the value of their deferred tax asset changed:
> “A reduction in corporate tax rates would require us to measure our net deferred tax asset using the new rate in the period in which the rate change is enacted, resulting in a one-time charge through the tax provision in the period the tax rate was changed, ...”
More here: https://www.housingwire.com/articles/42130-trump-to-sign-tax...