US President Donald Trump says he wants to work with his Turkish counterpart to end Russia's war in Ukraine.