The European Union’s executive arm on Wednesday criticized France for running up excessive debt, a stinging rebuke at the height of an election campaign where President Emmanuel Macron is facing a strong challenge from the extreme right and the left.