President Emmanuel Macron said the move was necessary “so that calm prevails.”