During arguments, key justices appeared concerned that the president’s efforts to oust Lisa Cook could imperil the central bank’s independence.