Élisabeth Borne, the French prime minister, said: “We cannot gamble on the future of our pensions. The reform is necessary.”