Bitcoin qualifies as money, a federal judge ruled, in a decision linked to a criminal case over hacking attacks against JPMorgan.