Follow CBSPHILLY Facebook  | Twitter

PHILADELPHIA (CBS/AP) — A federal appeals court panel has ruled that a Pennsylvania school district can allow transgender students to continue using bathrooms and locker rooms that correspond with their sexual identity.

A three-judge panel heard extended arguments in the case before conferring for less than 30 minutes and ultimately affirming a lower court decision refusing to halt the Boyertown School District’s transgender student bathroom policy.

Man Learns To Do His Wife’s Hair After Stroke Leaves Her Unable To Style It

A student at the school district about 45 miles northeast of Philadelphia, with the help of the conservative group Alliance Defending Freedom, filed a lawsuit alleging the district is violating his constitutional privacy rights by allowing transgender students to use the same facilities he uses.

Five students joined the lawsuit, two of them recently.

The judges called the lower court’s ruling, “exceptionally well-reasoned.”

Alexis Lightcap, a student at Boyertown Senior High School and one of the plaintiffs, said she walked into the women’s bathroom during her junior year and saw a transgender student and froze. She said she later told a teacher and the principal who told her the district had a new policy for transgender students.

“They made me feel like I was the problem for feeling uncomfortable, unsafe and vulnerable with a boy in my bathroom,” Lightcap said. She felt she had no say in the matter, just as she felt when she and her sister were in foster care as young children, she said.

Lawyers for Lightcap and the other plaintiffs said the school district violated their right to privacy by allowing students with different physical anatomy to be in spaces previously designated for people with the same anatomical gender.

“This decision is out of step with longstanding legal protection for privacy. We will continue advocating for these young students,” Alliance Defending Freedom said in a statement.

Here’s Why You’re Suddenly Getting Slammed With Privacy Policy Emails 

A lawyer for the school district said its policy of allowing students to use facilities corresponding to their stated gender is legal and prevents claims that the district violated the rights of transgender students to equal protection. He also noted the district has provided single-stall showers and single-stall bathrooms for students to change for gym class if they feel uncomfortable.

Ria Mar, an attorney for the American Civil Liberties Union, which intervened in the lawsuit, said the district handled the issue correctly by allowing all students equal use of the single-stall bathrooms, rather than forcing transgender students to use separate ones.

“Choosing to use that individual space and being required to use it because of who you are — that your very presence is unacceptable to others — is a very different thing,” Mar said.

There have been at least two other federal appeals court rulings in favor of transgender students who have made arguments that districts barring them from using the facilities designated for their stated gender violated their right to equal protection.

Harvey Weinstein Arrested On Rape, Criminal Sex Act Charges

Earlier this week, a federal circuit judge in Virginia sided with transgender teen Gavin Grimm, who claimed a school board violated his rights when it banned him from using boys’ bathrooms.

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)