The deal expands Stagwell’s Code and Theory Network’s presence in the Middle East.