A middleman who helped provide ketamine to Matthew Perry has been sentenced to two years in prison for his role in the actor’s death.