“Grubhub unlawfully overcharged and took advantage of restaurants during a public health emergency that devastated much of this industry,” Massachusetts Attorney General Andrea Campbell said in a statement issued Friday.