Optical and Near-Infrared Imaging of Ultra-Steep-Spectrum Radio Sources: The K-z Diagram of Radio-selected and Optically Selected Galaxies