Calpers, the biggest U.S. public pension fund, has sued the three largest credit rating agencies for giving perfect grades to securities that later suffered huge subprime mortgage losses.