As far as I can tell, there's no law that would prevent Musk from donating to a union's worker hardship fund, even as a federal contractor.