French President Emmanuel Macron's party and its allies have secured a powerful mandate after winning a commanding majority in the country's parliamentary election, according to official results.