49 U.S. Code § 24308 says "Amtrak has preference over freight transportation in using a rail line, junction, or crossing unless the Board orders otherwise under this subsection" [0]
In practicality, I agree with you that freight lines abuse this without consequence.
[0]: https://www.law.cornell.edu/uscode/text/49/24308