The move ended weeks of speculation in markets about who would replace Jerome Powell, who Trump has attacked repeatedly, and how that would affect markets.