tiff resistance by the militants, civilians trapped inside their houses and bad weather have slowed advances in the more than two-month-old offensive to recapture Iraq’s second largest city, the extremist group’s last urban bastion in the country.