Donald J. Trump, sitting on a huge campaign war chest, is eyeing a raft of television ads to help Republican candidates in the midterm elections, people familiar with the talks say.