A three-judge panel will hear motions Thursday on whether a federal court decision to invalidate a ban on same-sex marriages in California should be overturned because the judge was gay and in a long-term relationship.