Tentative agreement reached to avoid rail strike, White House said