US President Barack Obama has offered his condolences to the United Arab Emirates over the deaths of its 45 soldiers killed in Yemen.