Nahdlatul Ulama, the country’s largest Islamic organization, has taken a key step toward ending a weeks-long leadership dispute, with rival factions agreeing to convene an early congress next year.