Elon Musk's Department of Government Efficiency can continue to access sensitive records from at least three federal agencies, a judge ruled.