Judges pushed back on criticism their rulings reflect political affiliations of presidents who appointed them.