US forces are leaving Iraq, 23 years after an invasion that toppled a dictator but triggered years of chaos, amid fears there will now be a security vacuum.