Wanting to be a father
Sam had always wanted to be a parent, therefore he was all for keeping the baby. And he was also persuaded that Layla was the appropriate person with whom to establish a family, but he felt like the wedding and its preparations were rushed owing to the pregnancy.
Keeping Layla happy
But he went along with everything to make his future wife happy. He was attempting to keep as much stress and anguish away from her as possible while she was carrying his child. He also did most of the wedding planning.