In a pointed message to powerful nations, the president declared that South Africa’s sovereignty was “sacrosanct” and would not be compromised