JERUSALEM—Israel’s opposition leader moved closer to unseating Prime Minister Benjamin Netanyahu on Wednesday and forming a new government after agreeing on terms with several parties including one led by Defence Minister Benny Gantz, a spokesman said. During a 12-year run in the top office, Netanyahu has been an often polarizing figure at home and abroad. An end to his tenure may bring reprieve from domestic political turmoil, but major shifts in Israel’s foreign policy appear less likely from the staunch U.S. ally. Yair Lapid, tasked with forming the next governing coalition after the conservative Netanyahu failed to do so in the wake of an inconclusive March 23 election, has until midnight local time on Wednesday to present a final slate. Lapid, a 57-year-old former TV host and author, has yet to clinch a deal with his main partner, nationalist Naftali Bennett, who would serve as premier first under a proposed …