It's complicated. Legally, Amtrak always has priority over freight in the US, but freight gets around this by running trains that are longer than the longest sidings, making it impossible for them to pull over to let Amtrak pass. De facto versus de jure.