Russian President Vladimir Putin and President Donald Trump discussed ending the war in Ukraine, and Putin invited Trump to Moscow, the Kremlin said.