Environmental groups and blue cities use state courts to extract money from energy companies, but federal courts increasingly reject these climate claims.