The New Jersey Supreme Court on Wednesday said more than 500 lawsuits filed against pharmaceutical giant Hoffmann-La Roche by users of the acne drug Accutane—who allege the drug caused them to develop inflammatory bowel disease—should be dismissed because of the state’s strong public policy toward protecting drugmakers who follow federal Food and Drug Administration rules.

In a unanimous ruling, the court said an appeals court erred when it overturned a trial judge’s decision to dismiss the lawsuits.