NEW YORK/LONDON—Makers of everyday staples from Pampers diapers to Dove soap are walking a fine line by continuing to sell their products in Russia, as pressure grows on multinational companies to take a stand against Russia’s recent invasion of Ukraine. McDonald’s Corp. said on Tuesday it was closing its restaurants in Russia, including its iconic…