After losing about $1 trillion in the markets, state and local governments have a difficult choice to make for pension funds covering teachers, police officers and other government employees: either slash retirement benefits or chase high-return, high-risk investments.