SolarCity Corp. (SCTY), a solar-energy developer chaired by billionaire Elon Musk, won financing from Goldman Sachs (GS) Group Inc. for more than $500 million in rooftop solar systems that the company will complete this year.