Though he has lately resisted the impulse to criticize “Saturday Night Live,” President Trump was lured into an online war of words with Mr. Baldwin, who plays him on the show.