Six labor unions and the Economic Policy Institute had asked the court to restrict DOGE's access to Labor Department systems.