NJ Transit and the Brotherhood of Locomotive Engineers and Trainmen have reached a deal to end the rail strike.