The New York attorney general said the judgment, for serial unauthorized weed sales, should serve as a warning to others.