Energy secretary resigning from Obama Cabinet