EchoStar Corp.’s mega-sale of spectrum licenses to AT&T Inc. sent some of its $25 billion of debt soaring from distressed levels, vindicating bondholders who withstood years of brinkmanship and legal drama with the wireless and pay-TV empire led by billionaire Charlie Ergen.