A judge has allowed a book co-authored by Tupac Shakur's alleged murderer to be used in trial, potentially impacting the case's outcome.