Spectral properties of degenerate elliptic operators with matrix coefficients