US and Ukrainian officials have held what both sides say were "productive" talks on work to end Russia's war in Ukraine.