Ukraine's president has brokered closer ties with several states in the Gulf amid the US-Israeli war with Iran.