Emergent O(n) symmetry in a series of three-dimensional Potts models