A Johnson & Johnson unit agreed Thursday to pay $181 million to settle dozens of states’ claims that it engaged in illegal off-label marketing of antipsychotic drugs, with New Jersey to receive $5.3 million.

Janssen Pharmaceuticals Inc. of Titusville improperly marketed Risperdal, Risperdal Consta, Risperdal M-Tab and Invega, in violation of federal law, according to Chiesa v. Janssen Pharmaceuticals, MER-C-75-12.