A lawyer for 17 gays and lesbians who wed in Massachusetts urged a federal judge yesterday to strike down the 1996 federal law that defines marriage as a union exclusively between a man and a woman, calling it an unconstitutional intrusion on a matter previously left to states.