I was a diesel shop foreman. I took a fairly large per-hour payout at a different job in a different industry, and I am happy.
I have job security. I have better health insurance. I make close to what I did while doing so much less work. I have a team instead of no fellow foreman and a whole bunch of disgruntled craftspeople.
Leave. You owe nothing to the railroad. Either you leave or they’ll make you leave on their terms.