Obama voted for a 2005 energy bill supported by President Bush that included billions in subsidies for oil and natural gas production. McCain opposed the bill on grounds it included unnecessary tax breaks for the oil industry. Obama voted to strip the legislation of the oil and gas industry tax breaks. When that failed, he voted for the overall measure.
I’m just stating the facts.