Australian dairy group Bega Cheese's long-running legal battle with US food giant Kraft over the packaging on its peanut butter product has been resolved.