Mr. Bloomberg, who delivered speeches, held fund-raisers and lobbied lawmakers to legalize same-sex marriage in New York, is now punctuating his official advocacy with a personal gesture: hosting and presiding at a gay wedding on the first possible day, in one of the grandest possible settings.