The Stellar Populations of Two Ultra-diffuse Galaxies from Optical and Near-infrared Photometry