A decades-old same-sex marriage complicates a green-card case