Near infrared observations of quasars with extended ionized envelopes