French voters gave President Emmanuel Macron's party an outright majority in parliament.