White House announces tentative deal to avoid rail strike