MOSCOW — President Vladimir V. Putin of Russia received the geopolitical equivalent of manna from heaven on Friday when British voters opted to leave the European Union, speeding his long-term goal of weakening the most powerful alliance confronting the Kremlin as it seeks to rebuild its superpower muscles.