France's first Republican presidential primary ended in a runoff between two former prime ministers and halted a political comeback attempt by former President Nicolas Sarkozy.