WASHINGTON -- The U.S. Congress passed legislation Wednesday to boost funds for Amtrak and expand passenger rail service at a time of record ridership.

The Senate voted 74-24 to approve the five-year, $13 billion bill, which also mandates new safety measures for trains, including collision-avoidance technology. The House passed the bill last week.

The...