Spectroscopy of spatially extended material around high-redshift radio-loud quasars