You mean this senate? Many of them are not happy with the national debt and are willing to take risks if it gets fixed.
https://www.youtube.com/watch?v=BA3ma1MeSIU
Senate consent is only required for actual agency posts. Elon's team is just a small part of the USDS which is part of the Office of the White House. Which doesn't require Senate consent. Elon also has a Top Secret clearance and is technically competent to do the job.
Now I'm not defending everything Elon does but I'm saying that I didn't see anything that looked illegal there about the job description and the hiring itself.
Personally, I'd be happy enough if they just gutted just the FDA. There's probably a lot of other agencies doing harm and are overfunded.
Also, was advice and consent from the senate obtained for all these billions of taxpayer dollars being wasted and given to other countries for things that aren't needed?