Decision ends a protracted legal battle over the ownership of sacred texts that belonged to Syrian Jewish community for centuries, until they were secreted to Israel in the 1990s