XMM-Newton Detection of X-Ray Emission from the Compact Steep-Spectrum Radio Galaxy 3C 303.1