The hard edge reflected Trump’s steamroller approach to his second term, brushing aside opposition and demanding loyalty throughout the federal government.