A two-year experiment found that coral reefs could endure in heated water better than expected—with one huge caveat.