Spectroscopy of Planetary Systems with Space-based Telescopes