Radio Continuum and Recombination Line Study of Ultracompact H II Regions with Extended Envelopes