NEWYou can now listen to Fox News articles!

A federal appeals court ruled earlier this week that a now-fired Oregon school counselor’s display of books promoting binary gender views to students was not protected by the First Amendment.

The 2-1 decision handed down by the 9th U.S. Circuit Court of Appeals on Tuesday upheld Roderick E. Theis II’s termination from Oregon’s InterMountain Education Service District (IMESD), according to court documents obtained by Fox News Digital.

The court also rejected Theis’ appeal.

CHICAGO COLLEGE REMOVES LGBTQ PRIDE FLAG OVER INSTITUTIONAL NEUTRALITY CONCERNS

Security guards stand in front of the Ninth U.S. Circuit Court of Appeals building in San Francisco.

Security guards stand in front of the Ninth U.S. Circuit Court of Appeals in San Francisco, Calif., on June 12, 2017. (Getty Images)

According to the ruling, Theis, an education specialist who worked for the IMESD for more than 15 years, displayed books titled "He is He" and "She is She" in two separate offices on different campuses when meeting with middle school students.

He also displayed a children’s book penned by conservative commentator Matt Walsh, titled "Johnny the Walrus," that "allegorically comments on transgender issues," court documents said.

Following an investigation into the incident, Theis told school administrators that he did not mean any harm by displaying the books and even considered putting them away when transgender-identifying students visited his office.

WISCONSIN TEACHER FIRED AFTER SOCIAL MEDIA POST ADVOCATING TO 'MAKE AMERICANS GREAT ASSASSINS AGAIN'

Roderick E. Theis II's former workplace, the InterMountain Education Service District building in Oregon.

The InterMountain Education Service District in Oregon, where Roderick E. Theis II worked for more than 15 years as an education specialist serving middle school students. (Google Maps)

However, IMESD concluded the display of the books was a "bias incident" and instructed the counselor to remove them from his school offices — or risk termination.

A federal judge later partially granted Theis’ request for a protective order that allowed him to continue displaying the books in his offices when students were not visiting, but his employment was ultimately terminated after a district investigation revealed Theis provided the books to middle school students who had requested to see them, according to the ruling.

Theis’ attorneys went on to argue that the counselor was protected from the injunction when meeting with students outside of their official sessions, but a lower court later ruled that the partial injunction prohibited Theis from displaying the books when students were present in his office.

GOP LAWMAKERS URGE SUPREME COURT TO STRENGTHEN FIRST AMENDMENT PROTECTIONS FOR STREET PREACHERS

A gavel on a bench as people leave court

The 9th U.S. Circuit Court of Appeals upheld the firing of Oregon school counselor Roderick E. Theis II over his display of books promoting binary gender views to middle school students. (iStock)

The lower court, however, issued another ruling against Theis’ termination appeal.

The ruling was upheld by the 9th U.S. Circuit Court of Appeals on Tuesday, with the majority opinion outlining longstanding precedents that an educators’ speech is considered government speech when interacting with students.

"As a government employee, Theis was assigned to work in school offices, meet with students, and carry out his duties in that setting," Circuit Judge John B. Owens wrote in the majority ruling. "His speech occurred in the course of those responsibilities and cannot be meaningfully separated from them. As such, Theis’s speech falls outside the First Amendment’s ambit."

CLICK HERE FOR MORE COVERAGE OF MEDIA AND CULTURE

The sole dissenting opinion, written by Circuit Judge Lawrence VanDyke, sharply criticized the ruling. VanDyke argued that Theis’ books should be considered personal decorative items in his office, while questioning if a school could permit employees to hang pro-Palestinian banners while simultaneously banning the display of the Israeli flag.

CLICK HERE TO DOWNLOAD THE FOX NEWS APP

"Could public school administrators establish a policy allowing office decoration with partisan political messages deemed sufficiently ‘compassionate,’ but prohibit — as inherently hostile’ — any political speech that did not align with the Democratic Socialists of America platform?" VanDyke wrote.

Fox News Digital reached out to Theis’ attorney and the IMESD for comment.