The police and military in the Maldives said on Wednesday they will uphold the result of an election in which opposition leader Ibrahim Mohamed Solih beat President Abdulla Yameen.