Legislation would also render Netanyahu immune from prosecution