The Justice Department dropped its bid to force Apple to unlock a smartphone tied to a Brooklyn drug case after someone provided the keycode.