Race to avoid rail strike and shutdown