Uganda sent troops to Juba to prevent a full-scale war that could destabilize South Sudan, its key market in East Africa.