JERUSALEM—Israel’s opposition leader moved closer to unseating Prime Minister Benjamin Netanyahu on Wednesday when he officially informed the country’s president that he has reached agreements with political allies to form a new government. About 30 minutes before a midnight deadline, Yair Lapid, according to a party statement, told President Reuven Rivlin in an email: “I…