In his first formal assessment of the war in Afghanistan, Gen. David Petraeus said Tuesday that much of the Taliban's battlefield momentum has been halted, putting the U.S. on course to begin pulling out troops in July and shifting security responsibility to the Afghans.