For example, if the lab is in a galaxy so far away that it is receding from us, and is red-shifted, the photons of the experiment would be also red-shifted. The same for the H-spectra, but we don't say that the law of nature changes for different frames due to Doppler effect.
In this case, the photons are blue-shifted, but the reasoning is similar.