I suspect that his choosing of those judges was a combination of him listening to his handlers when they (rightfully) told him big portion of his base was only in it for the judges combined with the assumed belief on Trumps part that any judges he appointed to show him loyalty in any legal situation (they won't).