The law says marriages by nonresidents will not be recognized if their union is not legal in their home state. Several city and town clerks openly defied the order to deny marriage licenses to same-sex couples.