University officials said the school would end its decades-long relationship with the family that owns OxyContin producer Purdue Pharma.