This pretty much is the case in the US. People complain all the time about amtrak being delayed by freight, but the law has been that amtrak gets priority for decades.
It's just that they only get priority if they're actually on time (the initial booking of the rail essentially). Since they're constantly late they always miss this time and therefore have to wait.