What astronomical instrument spreads incoming light into a detailed spectrum to precisely measure the displacement of spectral lines?

Answer

Spectrograph.

Astronomers use spectrographs attached to telescopes to spread light into its constituent wavelengths, allowing the precise measurement of the displacement ($z$) of known spectral fingerprints.

What astronomical instrument spreads incoming light into a detailed spectrum to precisely measure the displacement of spectral lines?
lightgalaxycosmologyexpansionredshift