The invasion of Iraq has strained the long friendship between the U.S. and Turkey -- close NATO allies -- and Obama 's visit would mark an improvement in ties with Turkey , which is critical to aiding the U.S. pullout from Iraq and turning around the war in Afghanistan .