A lawsuit in Hennepin County seeking to legalize same-sex marriage, regarded by many as a long shot, is now officially a nonfactor until at least the end of the legislative session after an agreement struck this week between the county and the attorney for the plaintiffs.