Integrated Ultraviolet Spectra and Line Indices of M31 Globular Clusters and the Cores of Elliptical Galaxies