Iraq, which had recently regained some stability after decades of conflict, was immediately dragged into the Middle East war triggered when the United States and Israel attacked Iran last weekend.