X-Ray Emission from Young Stars and Implications for the Early Solar System