A federal judge ordered the restoration of jobs in the National Institute for Occupational Health and Safety’s Respiratory Health Division after a veteran coal miner filed a class action lawsuit arguing that the mass firings would lead to irreparable harm.