Valve has moved to dismiss the New York Attorney General’s lawsuit against the company, which claims loot boxes in its games such as Counter-Strike 2 promote illegal gambling and threaten to addict children.