Climate battles are moving into the courtroom, and lawyers are getting creative