Government unions yesterday criticized a White House executive order that bars certain workers at five federal departments from joining a union because they are engaged in intelligence gathering, investigations and other national security work.