With the end goal of maintaining the brand of Musk’s companies and pushing the stock price higher. If SolarCity had gone bankrupt, which it should have, Musk’s whole empire would have been in jeopardy
Yes, an Elon and his brother owned debt in SolarCity both personally and through other business ventures (SpaceX owned $100 mn in SolarCity debt at the time).
Court filings that have been released show that SolarCity was approaching bankruptcy, and that Musk faked the solar roof presentation to sell the deal to Tesla shareholders. The homes shown at the event were non functional.