No clarity is given in the Last Jedi, but the best answer is Luke.
Only 3 people know of the Sacred Jedi Texts:
Yoda
It's not likely Yoda would try to preserve them given the way he described them "not page-turners". And also the fact that he destroyed the uneti tree.
Rey
It's also not likely Rey would try steal them when she would assume that Luke is taking care of them and assuming they will be safe on Ahch-To.
Luke
It makes the most sense that Luke would want to preserve the Jedi through Rey, this is shown by his willingness to train her and save the Rebellion.
Perhaps he wanted Rey to continue her own training away from Ahch-To.
Perhaps he assumed that Rey's memory would be mindread (as it was) and the location of the Jedi Texts found and destroyed by the Sith - this would also explain why he would stash them on the Falcon rather than giving them to her in an obvious way.
The real question should be: Was it Luke in the flesh that planted the Sacred Jedi Texts? Or was it his force ghost?
Those questions and perhaps the original question may be answered in a future episode.