A federal appeals court late Wednesday upheld a lower court’s order requiring the U.S. Education Department to reinstate more than 1,300 fired employees and blocking an executive order to dismantle the department and a directive to transfer some services to other federal agencies.