The Covid pandemic has strained global supply chains, causing freight backlogs that have driven up costs. Now, some companies are looking for longer-term solutions to prepare for future supply-chain crises, even if those strategies come at a high cost.