Merck unit to pay $31 mln to settle fraud claims by U.S. states