A 70-year-old man with advanced metastatic prostate cancer develops back pain and new onset leg weakness and numbness. He also reports difficulty passing urine. On examination, he has reduced power (3/5) in both legs, sensory loss below the umbilicus, and increased reflexes in the lower limbs. What is the most urgent management?