@oristarA,
That's about right, but you need to look at the root. There is a saying that goes, 'to sleep the sleep of the just.' This means to sleep really well. It's because in this context 'just' is a noun, meaning people who are honest, as opposed to the noun 'guilty.' People who are just, 'the just', can sleep easily at night because they're not troubled by feelings of remorse or regret. Unlike people who are guilty, 'the guilty,' who don't sleep at all well.
In this context Buck had an incredibly good night's sleep, because not only did he enjoy the 'sleep of the just,' he was exhausted as well.