South Africa’s unity government must use the Iran war to forge a pragmatic foreign policy that protects jobs, trade and credibility over ideology