Maine, New Hampshire and Vermont are receiving a total of $9.6 million as part of a nationwide settlement between the drug company Johnson & Johnson and 37 states.

The $181 million nationwide settlement with Johnson and Johnson subsidiary Janssen Pharmaceuticals is believed to be the largest multi-state consumer protection settlement ever.

Maine’s share is $2.7 million. New Hampshire’s is about $2.8 million and Vermont’s is $4.1 million.

The states allege that Janssen improperly marketed the anti-psychotic drugs Risperdal, Risperdal Consta, Risperdal M-Tab and Invega.

The complaint alleges that Janssen engaged in unfair and deceptive practices when it marketed Risperdal for unapproved uses. It says Janssen rewarded doctors who prescribed and promoted Risperdal for unapproved uses with lucrative consulting agreements.

Janssen did not admit wrongdoing as part of the settlement, under which it agreed it would not promote the drugs for off-label uses or make misleading claims.