A paper trail shows just how far ministers went to accommodate the oil and gas industry's wishlist.