Springboks overcome off-field issues to keep Rugby Championship hopes alive