United States and Iraq finalize agreement to have troops out of Iraq by 2011