The case, filed in federal court in New York City, alleges the Trump administration allowed Elon Musk’s team access to the Treasury Department’s central payment system in violation of federal law.