President Donald Trump says he will attend the White House Correspondents’ Dinner for the first time as president, ending a years-long boycott of the annual event long marked by tension with the press.