RECONCILING THE STELLAR AND NEBULAR SPECTRA OF HIGH-REDSHIFT GALAXIES