Senate votes to avert rail strike amid dire warnings