Britain’s overseas hacking powers are being challenged in a European court, and Brexit won’t make a difference