President Macron's party faces a setback but it is a good night for the Greens after local elections in France.