The candidates stopped short of criticizing President Donald Trump directly but registered their disagreement with his call to “nationalize” voting and to his approach to tariffs.