The United Nations condemned the extremist group's destruction of ancient shrines dating back to the 13th century.