In a sweeping executive order denouncing the unions as “hostile” to his agenda, the president cited national security concerns to remove some one million civil servants across more than a dozen agencies from the reach of organized labor, eliminating the unions’ power to represent those workers at the bargaining table or in court.