What convinced Mr. Bloomberg to authorize the appeal , Mr. Skyler said , were his lawyers ' arguments that the city should avoid what happened last year in San Francisco after its mayor , Gavin Newsom , issued thousands of marriage licenses to same-sex couples .