Some of the Middle East’s biggest oil producers are pushing into solar energy even amid the rout in crude prices.