As Federal Reserve Board Governor Lisa Cook prepares for a high-stakes legal clash with President Trump — where the future of the central bank’s independence is potentially at risk — her allies see echoes of the grueling Senate confirmation hearing three years ago.