Sen. Jon Tester of Montana, a Democrat, faces the challenge of appealing to voters in a state where Donald Trump is popular. He is strategizing to appear moderate to win re-election.