The eight unions, which represent about 5,400 LIRR employees, ratified the contract by a margin of 95%, according to Anthony Simon, a union official who led the LIRR groups in talks with the MTA. He could not immediately provide information about turnout in the voting process.

The unions’ ratification of the pact sets the stage for the authority to consider the agreement at its board meeting in September, the next step in solidifying the deal.