Simple version:

The students who were told they couldn't change their mind at a later date were happier with their initial choice of photograph.
Based on that fact, the writer opines that if people were unable to change their mind about their life choices (the person they marry in this example), they would be happier with that choice.