The Justice Department and state prosecutors intend to file civil charges alleging wrongdoing by Standard & Poor's Ratings Services in its rating of mortgage bonds before the financial crisis erupted in 2008, according to people familiar with the matter.