Georgia Clark complained to Trump via Twitter about the amount of students in her school that were living in the U.S. illegally

An English teacher, who was fired after tweeting to President Donald Trump saying her Texas high school was full of students in the country illegally, has won an appeal to get her job back.

Texas Education Agency Commissioner Mike Morath ruled Monday that Carter-Riverside High School teacher Georgia Clark's tweet was protected by the First Amendment.

Morath also determined that Clark is entitled to back pay and employment benefits, or the Fort Worth Independent School District can pay her a year's salary.

The school district said Monday it would look the decision.

'It appears the commissioner ruled the way he did based on a technicality and we are exploring all of our options,' said Barbara Griffith, a spokeswoman for the school district. 'This is all we are going to say right now, as we have not yet had a chance to review and analyze the entire decision.'

Georgia Clark has her job back at Carter-Riverside High School after making waves with tweets to President Trump. The school district said, though, they are appealing the ruling

The district later added in a statement saying it plans to appeal the ruling, the Dallas Morning News reported. They claim the school board did 'adopt a finding that good cause exists' to fire Clark.

Clark's attorney, Brandon Brim, didn't respond to the newspaper's request for comment. Under state law, the district has 20 days to ask for a hearing, based on a specific problem it feels was ignored. If that request is filed, the Texas agency would have 45 days to rule on the request.

Carter-Riverside High School in Fort Worth, Texas, where a teacher will return to work despite controversial tweets to President Trump asking for help removing 'illegals'

Beyond that, any additional appeal would come in the form of a lawsuit in district court.

Earlier this year, several tweets from a Twitter account that used Clark's name asked the president to crack down on student immigration at the school. One tweet asked him to help remove 'illegals from Fort Worth.'

Her tweets sparked an outcry, and the district placed Clark on administrative leave in May.

In June, the district board unanimously voted to fire Clark. She told a district investigator that her tweet was meant only for President Donald Trump's eyes and that she didn't realize her tweets could be seen by the public.

Trump, one of the most popular people on Twitter, has 67 million followers.

Georgia Clark, a Fort Worth high school teacher had her job reinstated on appeal, claiming that her immigration tweets to President Trump were within her First Amendment rights

Georgia Clark told a district investigator that her tweet was meant only for President Trump's eyes and that she didn't realize her tweets could be seen by the public

Her Twitter account has since been deleted. But in one of the Trump-directed tweets she apparently gave her phone numbers asking 'anything you can do to remove the illegals from Fort Worth would be greatly appreciated?'

In August, an independent hearing examiner suggested that the board reinstate Clark after finding her job termination unjustifiable. But the board rejected the recommendation and upheld the decision to fire her.

'We stand by our decision because we firmly believe this is in the best interest of all students,' Superintendent Kent P. Scribner said.

It wasn't the first time Clark's job was in jeopardy. In 2013, the board voted to fire her over her language and behavior toward students, but a teachers group intervened and helped resolve the situation.