Iran has pulled out nearly all of its forces from Syria following the rebels’ victory against the Assad regime, dealing a major blow to Tehran’s influence in the region, officials said.