TiVo has reached a $500 million settlement agreement with Dish Network and EchoStar, effectively ending the companies’ seven-year legal dispute over digital video recording patents.