The dismissals target two independent agencies that oversee swaths of U.S. workers, employers and labor unions.