In the 1950s, many psychiatrists thought that homosexuality could be reformed. One found that it couldn’t – and his discoveries led to a change in the law.