Role of magnetic anisotropy in spin-filter junctions