NEW YORK — S&P to pay $1.38B to settle with US, states over mortage crisis-era ratings.