The transplant was approved because the man was near death and no alternative was available so he volunteered for the process.
Here's a brief summary of how insulin was discovered.
"In 1921, a young surgeon named Frederick Banting and his assistant Charles Best figured out how to remove...