A pioneering attempt to overturn the US government’s Cold War-era laws restricting the publication of some forms of encryption code ended quietly on Wednesday when a federal judge dismissed the lawsuit — but only after assurances that the anticrypto laws would not be enforced.