Sunrun, America's largest home solar and battery company, raised $584 million by selling investment notes backed by customer solar systems.