they threw the book at him

They threw the book at him is when someone is charged or convicted with as many crimes as possible. The book in this phrase is in reference to the book of law, not the bible which some people tend to think is the case. What it means to have the book thrown at you means when you are convicted of one crime, the jury, judge and lawyers try their best to charge and convict you with many other crimes at the same time.