A climate-change resistant Red Sea reef is being flooded with toxic wastewater, leaked documents show.