In refusing the patent, the office also cited Section 377 of the Indian Penal Code, a 155-year-old colonial-era law that criminalizes gay sex and …