The Department of Veterans Affairs and the largest federal employee union have finalized a new labor agreement, putting an end to more than six years of stalled contract negotiations.