Iran's Supreme Leader endorsed the Ukraine war at the trilateral summit between Russia, Iran and Turkey, while Ankara sought support for its own goals.