But on Monday, the outcome seemed all but assured. The judges on the panel had joined or written gay rights rulings in the past and can rely on new precedents that favor same-sex marriage. Nineteen states and Washington, D.C., now permit gay marriage.