A new investigation shows the oil company understood the science before it became a public issue and spent millions to promote misinformation