Scott Bessent prevailed after a fierce battle for influence inside the president-elect’s court