Which train should go first—an Amtrak passenger train or a cargo train? That’s the question federal regulators are trying to resolve.

For more than 40 years, Amtrak says it has had the right to go first under law, meaning freight railroads have to pull over their trains whenever possible to let a passenger train pass or hold their trains in station to prioritize an Amtrak departure, except in emergencies.

Freight...