The Nature of Compact Galaxies in the Hubble Deep Field. II. Spectroscopic Properties and Implications for the Evolution of the Star Formation Rate Density of the Universe