Ramaphosa was re-elected after his party struck a dramatic late coalition deal with a former political foe just hours before the vote.