The mayor-elect now has the challenge of running a complex bureaucracy while balancing a budget crunch, Trump’s ire and his supporters’ expectations.