McGraw-Hill Cos., the owner of the world’s largest ratings company, was downgraded by its biggest rival after the U.S. government filed a lawsuit that seeks as much as $5 billion in damages.

Moody’s Investors Service cut the debt rating on the New York-based parent of Standard & Poor’s by two levels to Baa2 from A3, and said it may reduce the grade again.