Constraining the Spin-Dependent WIMP-Nucleon Cross Sections with XENON1T