The New York attorney general sued ExxonMobil, accusing the oil company of misleading investors about the risk climate change regulations posed to the business.