The settlement looms nearly two years after the Department of Justice first accused S&P of giving top ratings to poor quality mortgage securities between 2004 and 2007.