The results appear to be a setback for Prime Minister Benjamin Netanyahu, who has dominated Israeli politics for nearly two decades.