(Reuters) - For the first time ever, a U.S. appeals court on Tuesday ruled that federal civil rights law protects lesbian, gay, bisexual and transgender employees from discrimination in the workplace.

The ruling from a divided 7th U.S. Circuit Court of Appeals in Chicago represents a major legal victory for the gay rights movement.

It also allows a lawsuit to go forward in Indiana, where plaintiff Kimberly Hively said she lost her community college teaching job because she is lesbian.

"I have been saying all this time that what happened to me wasn't right and was illegal," Hively said in a statement released by the gay rights legal organization Lambda Legal, which represents her.

In its decision to reinstate Hively's 2014 lawsuit, which was thrown out at the local level in Indiana, the Court of Appeals ruled that protections against sex discrimination in Title VII of the Civil Rights Act of 1964 protects people from job discrimination based on their sexual orientation.

In so doing, the full appeals court overruled a decision by a smaller panel of its judges to uphold the district court's decision in the college's favor.

In its 8-3 decision, the court bucked decades of rulings that gay people are not protected by the milestone civil rights law, because they are not specifically mentioned in it.

"For many years, the courts of appeals of this country understood the prohibition against sex discrimination to exclude discrimination on the basis of a person's sexual orientation," Chief Judge Diane Wood wrote for the majority. "We conclude today that discrimination on the basis of sexual orientation is a form of sex discrimination."

In her lawsuit, Hively said that Ivy Tech Community College in South Bend passed her over for a permanent position and refused to renew her contract as an adjunct professor after school administrators learned she is a lesbian.

The school has denied the claims, and a representative was not immediately available for comment on Tuesday.

Story continues

(Reporting by Joseph Ax, additional reporting by Sharon Bernstein in Sacramento, California; editing by Sandra Maler, G Crosse)

Related:

For more news videos visit Yahoo View, available now on iOS and Android.