Kevin Warsh was sworn in as chair of the Federal Reserve on Friday at a pivotal moment for an American economy hit by surging inflation and eroding consumer sentiment.