Government forces have surrounded the militants in the northwestern quarter including the Old City, home to the Grand al-Nuri mosque where their leader, Abu Bakr al-Baghdadi, declared a “caliphate” over parts of Iraq and Syria.