It was once the emblem of US military success in Iraq - the city where American forces defeated their adversaries twice. First they drove out the army of Saddam Hussein, and later the Islamist militants who rose up against the occupation.