The decisions mark both a victory and a setback for President Emmanuel Macron, who had championed both policies.