Because federal judges wield significant power, they are at the core of a president’s legacy. We explain how they are chosen and confirmed.