Iraqis welcomed the departure of the final US troops after more than two decades, while concerns persisted over security threats and Iran-backed militias.