Complex sentence: Both companies were contracted produced a batch of thirteen locomotives which would be evaluated by the USATC; the vendor providing the better locomotive would then produce the rest of the required locomotives.
Split into simpler sentences: Both companies were contracted produced a batch of thirteen locomotives which would be evaluated by the USATC. The winner of that evaluation would get to produce the rest of the required locomotives.