Spectral amplitude and phase changes in diffraction of Terahertz pulses