A Near-Infrared Photometric Plane for Elliptical Galaxies and Bulges of Spiral Galaxies