A solid year for the U.S. stock markets resulted in better-than-expected returns for state and local pensions last year. However, that boost may not be enough to pull them out of trouble.