Which country recognized the rights of same-sex couple for the first time in history?

Which country recognized the rights of same-sex couple for the first time in history?

Explanation

In February 2023, South Korea court recognises same-sex couple rights for first time