Spectral shape of the UV ionizing background and He II absorption at redshifts 1.8 $<$ z $<$ 2.9