LONDON—Auto shipments stopped, beer stopped flowing, cargo ships dropped port calls and oil companies cut their pipelines. Russia’s invasion of Ukraine has thrown business plans into disarray and forced a growing number of the world’s best known brands—from Apple to Mercedes-Benz and BP—to pull out of a country that’s become…