The terrorist attacks in Berlin and Ankara — and warnings that more attacks may come during the holiday season — have cast a new spotlight on the pace of Donald Trump’s homeland security, intelligence and counterterrorism appointments, and on whether he is prioritizing politics and ideology over substance when it comes to these critical roles.