You need to figure out what you want to appear and how. Legal styles are always a challenge as they vary so much –
You should first try making the ref type “Statute” and see if the fields make sense to you.
Statute Bibliography template is set up in the APA 7th output style as
Name of Act,| Pub. L. No. Public Law Number,| Code Number| Volume| Source| Pages| § Sections| (Year)|.| URL
And the “About this style” says:
Chapter 11, Legal References
EndNote cannot accommodate conditional formatting of in-text citations or same reference types. The templates for legal references have been set up to include each of the fields shown in the various examples. Reference list entries may vary by state. Only references from the state of Florida are included in the manual and you are referred to Bluebook for other examples.