Oil and gas companies are grappling with a surge of lawsuits accusing them of misleading the public about fossil fuels' role in driving climate change.