Each of the portfolios in the federal government’s 401(k)-style retirement savings program finished last month in the black.