Federal judge: Ban on gun sales unconstitutional