Granted, but I'm not sure that the progress that can be attributed specifically to the presence of humans in space has been worth the expense.
Your two examples are instructive. I guarantee you that these medical advances would have been made in the absence of a space program. It's not a matter of if, but when. The best that be said about the scientific contribution of human bodies in orbit is that it has provided some acceleration of progress -- I know of no evidence to the contrary.
The crucial question is, what are we willing to pay for that acceleration?