Rainbow gravity and scale-invariant fluctuations