The Socialists extended their quarter-century rule in Paris, while the far right lost in France’s second city, Marseille.