Six labor unions and the Economic Policy Institute had asked the court to restrict DOGE's access to Labor Department systems.
The ruling was made before one of the two DOGE members working at Treasury resigned after racist X posts were linked to him.
Earlier on Thursday, a federal judge approved Elez and another DOGE staff member to access the U.S. Treasury payment system.