Under the deal announced Wednesday by Attorney General Letitia James, the broadcast giant is required to pay $22 million