Volkswagen has agreed to buy back diesel cars equipped with illicit emissions control software after deciding not to appeal a German court ruling backing plaintiffs' calls for compensation, a media report said.