What technique, starting around 1864, provided the first objective method to differentiate between gaseous clouds and unresolved star systems?

Answer

Spectroscopy

William Huggins analyzed light spectra; one-third of the nebulae showed an emission spectrum typical of glowing gas, while the rest showed a continuous spectrum suggesting unresolved stars.

What technique, starting around 1864, provided the first objective method to differentiate between gaseous clouds and unresolved star systems?
discoveryastronomynebulae