My husband was confident in front of the judge—then our child changed everything.