Efforts to diversify global supply chains have run into logistical challenges from the pandemic and Russia’s invasion of Ukraine.