Standard & Poor's (S&P) has agreed to pay a $1.38 billion settlement to US regulators over allegations it knowingly inflated…