N.Y. judge backs Apple in encryption fight with government