Unions and health insurers cannot pursue a nationwide class action consumer fraud case for billions of dollars spent on the painkiller Vioxx, the New Jersey Supreme Court says.

The justices on Thursday reversed lower court rulings that certified the suit by third-party payers against Merck & Co. Inc., which sold the painkiller from 1999 until withdrawing it from the market in 2004.