French president close to endorsing pro-EU ruling party over Eurosceptic rivals