Justice Department lawyers are reviewing hundreds of civil cases to determine whether the department’s continued participation in the proceedings accords with the law should the government shut down Friday night.