Judge halts federal database for citizenship checks