The former president is projected to have won despite facing legal troubles and spending less time on the campaign trail than his rivals.