Even if there were, it wouldn't be very useful. In a "common law" system like the US, legal questions are rarely answered purely by the plain text of a law. You also need case law - that is, how the law is typically applied in practice by the courts.
CourtListener (from the non-profit Free Law Project) provides bulk access to its case law collection.[1][2] I expect they are ingesting the GPO uscourts collection so it should have near complete (99%) coverage.[3][4]
OpenAI, Anthropic, and Google are way ahead of you. Ask your heart away. I am unsure about open source models, it'd be interesting to know if they're ingesting the law.
The reality is that the official United States Code gives plenty of history for statutes, while the Code of Federal Regulations gives less but still basic history. Both are also provided in XML in bulk, though the former has a modern USLM format and the latter has an archaic schema. Case law is less amenable to git histories.