Don't buy junk bonds. Why are you looking for bonds that yield 9%?
"Another way to look at this is that the investment is returning ~9%/year."
EDIT: Two more things that will juice the return
1. Grid electricity prices will go up over those 25 years, at the very least tracking inflation.
2. Unlike bond coupon payments, the "return" from a solar installation isn't taxable. Because you're saving money, not getting paid.