Kroger workers in Detroit have agreed a three-year pay deal with the US retailer.