Congress successfully avoided a government shutdown by passing bill to avoid a railroad strike.