Shares of S&P owner McGraw-Hill have plunged on concerns about a federal lawsuit. The news dragged down rival Moody's as well.