A religious court has ruled that an ethnic Malay woman raised by her Muslim grandmother died a Buddhist in a case hailed as a first in Malaysia.