It's not like in music where the publishers get the lions' share and the artists get a fraction of that - in academic pubishing, it's 100% to publishers and not a single cent ever of the proceeds goes to authors or reviewers or to funding science programs.
And "closed access science" produced by USA is still available to researchers in every country despite the paywalls, all the serious universities have arranged subscriptions, it's just that currently they are paying a large fee to unnecessary middlemen (e.g. Netherlands' Elsevier) for that privilege.
Countries don't fund research because of what shows up (or not) in scientific journals from other countries that they can somehow glean. They fund researchers to do research in their countries because the trickle-down effect of PhD students, graduate students, prestige, and ultimately spin-off companies and economic benefit that comes from doing so.