Hamas and the Houthis have established offices in Baghdad, signaling their growing ties with Iraq as Iran seeks to strengthen its regional influence by uniting allied groups.