Federal judge halts key parts of New Yorks new gun law