The city of el-Obeid, a commercial and transportation hub, had been under siege for nearly two years by the paramilitary Rapid Support Forces (RSF).