A far-reaching investigation into corruption at the state oil company has destabilized the government, damaged the economy and wounded national pride.