The House voted to block a nationwide rail strike, passing two separate bills which now head to the Senate for a vote.