Iraq, which has long been vulnerable to proxy wars and is closely watched by Iran and the United States, has recently regained a sense of stability.