The $5 billion settlement from pharmaceutical giants will go to funding groups who aid victims of substance abuse.