The New York attorney general took aim at brokers who use “bots” and other methods that keep tickets out of the hands of ordinary fans.