When the United States was debating whether to invade Iraq , there was one outcome that everyone agreed had to be avoided at all costs : a civil war between Sunni and Shiite Muslims that would create instability throughout the Middle East and give terrorists a new , ungoverned region that they could use as a base of operations .