City Clerk's offices in all five boroughs will open on July 24, the date that the same-sex marriage law goes into effect, and judges will be on hand to officiate at the weddings immediately after couples receive their marriage licenses.