The New York attorney general’s office dropped its claim that Exxon Mobil Corp. intentionally misled investors about how it accounts for the financial risks of climate change, significantly diminishing the state’s case in the last minutes of a high-stakes securities fraud trial.