French Socialists poised to take control of parliament