So legally the passenger trains have priority but
-they made the freight trains too long to fit into sidings so they can't pull over
-if a pax train gets delayed they no longer get any priority so they can be delayed even more
(On top of disinvestment in the system as a whole)
It's not great!