The deal is a life raft for Dish, a fading purveyor of traditional television whose fortunes have waned along with the pay-TV industry. The company has roughly $2 billion in debt coming due in November, and about $500 million in available cash, putting the company at risk for bankruptcy.