Each of the portfolios in the federal government’s 401(k)-style retirement savings program gained value in January.