When French President Emmanuel Macron's government suffered a crushing defeat in June's European Parliament elections, a snap national election meant to beat back Marie Le Pen's far-right National Rally party and clarify the political situation — a gamble that only half paid off.