U.S. troops withdrew from Iraqi cities at the end of June , transferring security responsibilities to Iraqi forces .