House passes railroad bill