Beam Suntory staff at two Jim Beam plants have agreed to end a strike after approving new labour terms.