The ads featuring President Trump have been criticized as government propaganda and as aimed at influencing the outcome of the midterm election.