A man who confessed to stealing body parts from funeral homes was termed by prosecutors to pose a “grave risk.”