Germany will loan more than 654 million euros ($796 million) for two solar-thermal power projects in Morocco that are among the world’s largest.