Brazilian meat giant JBS has made a commitment with Greenpeace over its sustainability efforts following a month of dispute.