A Ugandan woman was granted refugee status Wednesday following a district court ruling last month ordering the government to do so over fears she could be persecuted for being a lesbian if she were deported to her home country.

The move comes after the Immigration Services Agency unveiled its first guidelines last month on eligibility for refugee status, which included sexual minorities.

“This would allow me to think about a bright future,” said the woman in her 30s, who is remaining anonymous due to privacy concerns, NHK reported. She received a residency status which allows her to stay in Japan for five years, according to her supporters.