The Machinists union reached tentative agreement on a new four-year contract with Boeing, in a move that probably ends the dispute over moving a factory from Washington State to South Carolina, which prompted action from the NLRB against what they saw as an illegal labor violation.