The ruling will force federal agencies to reconsider what protections are warranted for the species as their ocean habitat warms.