Coherently coupling distinct spin ensembles through a high-Tc superconducting resonator