Isn’t this a regulation problem? So much stuff that is funded with government money (partially or fully) ends up pay walled. Can’t governments regulate to stop that?
The US govt already requires publicly funded publications be shared publicly. Some agencies like NIH and DoD have their own archives you need to put the article in. The law allows up to something like a limit of one year paywalling.