The exact ground state for a class of matrix Hamiltonian models: quantum phase transition and universality in the thermodynamic limit