A global coral phylogeny reveals resilience and vulnerability through deep time