Ms. Cook said that she would not resign from the board of governors, hours after President Trump announced he was firing her.