The Senate on Thursday passed legislation to avert a rail shutdown following a grave warning from President Joe Biden about the economic danger posed by a strike. The House passed the tentative rail agreement on Wednesday. The measure can now be sent to the president to be signed into law. The vote came after pressure had mounted on lawmakers to act swiftly. Senate Majority Leader Chuck Schumer said earlier on Thursday that the Senate “cannot leave until we get the job done.” The final vote in the Senate was 80 to 15. Without congressional action, a rail strike could have become a reality as early as December 9, causing shortages, spiking prices and halting factory production. It could also have disrupted commuter rail services for up to seven million travelers a day and the transportation of 6,300 carloads of food and farm products a day, among other items, according to a collection of business groups. The legislation has been sent to President Biden who is expected to sign it.