NEW YORK — Donald Trump appeared in a Manhattan courtroom Tuesday for a moment unprecedented in American history, pleading not guilty to 34 felony counts related to payments intended to silence an adult-film actress during his 2016 presidential campaign — a scheme that prosecutors said amounted to an illegal conspiracy to win the White House.