Judge Neil M. Gorsuch, President Trump’s Supreme Court nominee, emphasized on Monday the need for judicial independence even as Mr. Trump castigates jurists who have ruled against him.