Court ruling gives fathers' rights back to man with low IQ