Pension fund managers are investing more in solar energy, undeterred by declining returns because the industry is considered a safe alternative to traditional securities such as government bonds.