Tuesday’s ruling, by New York Supreme Court Justice Barry Ostrager in Manhattan, is a blow to the state’s attorney general, Letitia James. In the securities fraud lawsuit, filed in October of last year, New York accused Exxon of lying to shareholders about its use of a “proxy cost” for carbon in accounting for future climate change regulation to make them think the company was being more prudent than it was.