The lawsuit accused Scott Bessent, the Treasury secretary, of giving Elon Musk's Department of Government Efficiency access to sensitive information.