Topologically protected photonic modes in composite quantum Hall/quantum spin Hall waveguides