The president’s campaigns against popular rivals have solidified his grip on power, but risky political moves could backfire