Russians close to the Kremlin voiced optimism that Donald J. Trump could help end the war in Ukraine on Russia’s terms. But Moscow also remembers Trump’s first term as a disappointment.