A US judge has declined a request to temporarily block Elon Musk and his Department of Government Efficiency (DOGE) from firing federal employees and accessing agency data.