Cosmic and Solar System Abundances of Deuterium and Helium-3