Tens of thousands of fired federal workers must be reinstated immediately, judge rules