I don’t think legislation is needed for that. Many publishers already allow you to publish your pre-print. Examples (leaving out some restrictions, but I think these are the gist of the policies)
https://www.elsevier.com/about/policies/sharing#preprint:
“Preprint
Authors can share their preprint anywhere at any time.
If accepted for publication, we encourage authors to link from the preprint to their formal publication via its Digital Object Identifier (DOI). Millions of researchers have access to the formal publications on ScienceDirect, and so links will help your users to find, access, cite, and use the best available version.
Authors can update their preprints on arXiv or RePEc with their accepted manuscript.”
https://www.springer.com/gp/open-access/preprint-sharing/167...
“Springer journals encourage posting of preprints of primary research manuscripts on preprint servers, authors’ or institutional websites, and open communications between researchers whether on community preprint servers or preprint commenting platforms.
[…]
Authors may choose any license of their choice for the preprint including Creative Commons licenses.”
So, if you know the title of a paper, you often can find a preprint, if the authors are willing to make the effort to put them on a site.