High signal-to-noise spectral characterization of the planetary-mass object HD 106906 b