Indonesia opposition plans legal challenge after president’s re-election confirmed