Congress votes to avert rail strike amid dire warnings