It most certainly is funded with tax money. This usually means that the work has to be publicly accessible. Which it is on https://arxiv.org. I agree that the fees journals charge to access (even your own) work is absurd, but it's not something most astronomers worry about. astro-ph is where it happens. I don't know about other fields, but the arXiv is really fantastic for astronomy/astrophysics.