The last remaining US forces in Iraq are set to leave the country after more than two decades of military operations.