Mr. Cooper will pay a total of $91.3 million to settle allegations by 51 state attorneys general and the Consumer Financial Protection Bureau over servicing violations since 2014.