Volodymyr Zelensky said Sunday—the eve of the third anniversary of Russia's invasion—that he was ready to quit as Ukraine's president if it meant Kyiv would be admitted to the NATO military alliance.