Effects of velocity-dependent dark matter annihilation on the energy spectrum of the extragalactic gamma-ray background