An executive order on Thursday aimed to end collective bargaining for workers at numerous departments and agencies.