President François Hollande’s Socialists and their allies are on track to win a strong parliamentary majority after a first-round election that cemented France’s swing to the left.