The Justices challenge the lawyers about what’s best for children—and what the rights of infertile heterosexual couples say about gay marriage.