DES MOINES — Moody’s Investor Service and two affiliates will pay Iowa some $9 million as part of a nearly $863 million joint federal-state settlement in connection with claims the credit-rating company inflated ratings of mortgage-backed securities that led to the 2008 financial crisis.The settlement is part of a deal with the U.S.