Congress overwhelmingly approved legislation last week to implement a new contract for railroad workers, averting a potential strike that would have crippled agricultural shipping along with broader impacts to the U.S. economy.

The Senate approved the legislation 80-15 last...