The Temple University plans to expand its offerings with the purchase of the former William Penn High School for $15 million.