Crippling rail strike averted