A South African court has issued an interim order preventing Sudanese President Omar al-Bashir from leaving the country.