Initial rejection leads to $40 million gift