The justice made remarks at once cautious and forceful at Georgetown University Law Center, which has called attacks by the Trump administration a threat to academic freedom.