The world’s biggest miner faces fraught politics and complicated history weeks before key general elections