Gun dealers in three states have agreed to have their sales monitored to settle a civil lawsuit accusing them of recklessly selling firearms later used to commit crimes in New York.

The three shops in Pennsylvania, Virginia and Georgia were among 15 sued by the city last spring after they sold pistols to undercover investigators posing as “straw purchasers” — people who buy guns on behalf of someone prohibited from owning them.