A judge's decision on Thursday declaring that a state law allowing same-sex marriage in Massachusetts should take precedence over a federal definition of marriage has exposed the fractures and fault lines among groups working to bolster states' rights.