The court’s decision could have an impact on other gay civil servants who marry overseas. Photo: Nora Tam