Emmanuel Macron appointed Sebastien Lecornu as France’s new prime minister, betting on continuity amid protests, opposition anger and budget battles.