NBC: Judge rules against union bid to block mass federal layoffs by Trump