A controversial ruling by a hardline Israeli rabbi has been condemned by Palestinians.