Twitter, owned by Musk, fought for months for the right to tell Trump about Special Counsel Jack Smith’s search warrant for his account.