Dolan says fight against federal law will undermine marriage