What happens is that the freight trains gives Amtrak a window for its timetable. In that window, Amtrak gets priority. Miss the window, and Amtrak has to wait for freight trains. There's a separate issue that some freight operators will decide to screw Amtrak over (even within their nominal window) and just eat the fines instead.