This is why Supreme Court justices are appointed for life. At least in theory, they'll carry out their job impartially because they don't have to run for re-election. They'll hold their position long past when the current administration so any conflict of interest should be mitigated over time. Directly electing judges has its own set of problems. I'm not trying to argue for one way over the other, just pointing out that the executive branch appointing judges is not inherently wrong.