Funding for affordable housing and community investment programs declined across the board as the FHLBanks’ profits waned in 2021.