On a class of degenerate elliptic operators in L^1 spaces with respect to invariant measures