WARSAW—Poland’s President Andrzej Duda said on Monday he vetoed a controversial media bill that would have forced U.S. company Discovery to give up its controlling stake in Polish television network TVN, with the president acknowledging free speech concerns of the bill’s opponents and suggesting it would have strained relations with the United States, a key…