Johnson & Johnson should pay $344 million in damages because the company deceptively marketed transvaginal pelvic mesh implants to tens of thousands of women in California, a judge ruled Thursday.

Johnson & Johnson said it intended to appeal the ruling, which it said “disregards” the company’s compliance with federal regulations.

The judgment was framed as a civil penalty against the company related to sales practices for its pelvic mesh products, which have been the subject of years of personal injury litigation from women who used them to treat a condition called organ prolapse. The total payouts by a handful of the mesh manufacturers to injured women now tally about $8 billion.

The ruling, by Judge Eddie Sturgeon of San Diego Superior Court, was less than the $800 million in damages the state had asked for last year at trial. California’s attorney general first filed this deceptive marketing lawsuit in 2016.