No he did not.
They got a 14.1% raise, and then five $1,000 lump sum payments that together add up to a 24% raise. Trick is that the starting point for future negotiations is that 14.1% raise, not the 24%.
One company(CSX) representing less than 4.5% of the rail workers came to an agreement on their own that the white house takes credit for, but the CEO of CSX says they weren't involved in the talks.