The Senate voted to confirm Kevin Warsh as chairman of the Federal Reserve, marking a victory for President Trump.