First of all, their jobs are available other places, although likely company locations not ports, maybe non-union, and almost certainly less pay.
Even if someone was silly enough to give them 3yrs wages, most would just squander it almost immediately and still complain about their situation, that's not so much them it just seems to be human nature.
There are programs for those with their jobs shipped overseas (TAA - Trade Act program) where "if" you cannot find like work you can be retrained for something else that pays similarly and that is an offshoot of unemployment. I and many other workers had our IT jobs shipped overseas, in my case by two different employers years apart. Something like that would work for some of them, basically you get retrained and unemployment same time. Trouble is as most of us know unemployment is kinda like SS, really only works if all you have are monthly expenses (not rent/mortgage, or other loans). I went through all the paperwork got approved, found there were no retraining ops that fit my education that came remotely close to my normal pay range and one of the requirements of TAA was the job you're training for had to pay as good or better. Both times I ended up finding work in my trade and I didn't even need to move. I did know some who did the retraining and they did choose jobs that were not likely to be outsourced to India or in-sourced with H1-B again the same, from India.
Funny part of all this losing jobs stuff... about 3mo after the 2nd time it happened I fell into what I do now and not only do I make nearly twice what I did before, but I've worked 100% from home since 2011. Sometimes life works out just fine.