Cosmological Effects of Scattering in the Intergalactic Medium