A group of 16 Democratic attorneys general have filed suit in New York, claiming that Mr. Trump had improperly upended the policy known as Deferred Action for Childhood Arrivals.