President Joe Biden said Thursday a tentative railway labor agreement has been reached, averting a potentially devastating strike before the pivotal midterm elections.