The lawsuit is driven by Trump’s effort to bar unions at NASA on the grounds that they hinder the agency’s “national security ...