After years of litigation, the two sides agreed to “business terms” that will allow their media empires to “co-exist in the marketplace,” according to a joint statement.