The United Nations cultural body UNESCO has voted to leave the Great Barrier Reef off its "in danger" list despite recent widespread destruction of the World Heritage Site.