On the edge of the Sahara desert, Morocco is building one of the world’s biggest solar power plants in a project largely funded by the European Union. It is a hard success for other African nations to match as they seek to implement a new global deal to combat climate change.