JBS has struck a deal that will see allegations that the meat giant bought beef from farms that contributed to the deforestation of the Amazon and used slave-workers dropped.