Railroad strike averted after senate and house pass legislation