The Department of Justice has faced criticism that its lawsuit is aimed at blocking a Democratic victory in a key race.