Islamic State militants recaptured the ancient city of Palmyra from Syrian troops Sunday, according to both sides in the battle, scoring a major advance after a year of setbacks in Syria and neighboring Iraq.