South African President Cyril Ramaphosa thanked his Russian counterpart, Vladimir Putin, for helping to secure the group's return.