An algebraic multigrid method for a class of elliptic differential systems