The amendment to Thailand’s civil laws would make the country the first in Southeast Asia to grant equal marriage rights to people of all genders.