Addison Barnes, 18, sued his school when he was suspended for wearing a 'build the wall' t-shirt to a politics class where immigration was to be discussed

An Oregon high school student will be given a $25,000 settlement and a written apology from his principal after a judge found orders for the teen to remove a pro-Trump shirt he had worn to class were in breach of his first amendment rights.

Addison Barnes, 18, was a senior at Liberty High School in January, when he was suspended for refusing to cover up a t-shirt promoting Donald Trump's proposed border wall.

The teenager wore the shirt, which reads: 'The wall just got 10 feet taller', to a politics class on a day there would be discussion of immigration.

He was asked to cover the shirt by the school's assistant principal, after the dean of students reported some of his classmates felt 'intimidated and threatened', court documents show.

When he uncovered the shirt again, he was told he could cover it back up, change into a different shirt, or go home. The school counted his choice to go home as a suspension.

Shortly after, Barnes filed a lawsuit against the school – and won.

Barnes (pictured wearing the shirt) was asked to cover it up by the vice principal, who said she'd been informed some of his classmates found it offensive and threatening

In late May, Barnes was successful in obtaining a restraining order, which would prohibit the school from saying he couldn't wear pro-Trump clothing.

Decrying the 'cost and disruption of litigation', the Hillsboro school district settled on Tuesday, agreeing principal Greg Timmons would write an apology and the district would cover Barnes' $25,000 legal bill.

'I brought this case to stand up for myself and other students who might be afraid to express their right of center views,' Barnes said in a statement.

'Everyone knows if a student wears an anti-Trump shirt to school, the teachers won't think twice about it. But when I wore a pro-Trump shirt, I got suspended.

'That's not right.'

In vice principal Amanda Ryan-Fear's statement to the court, she explained about one third of Barnes' classmates were of Hispanic ethnicity, and some of these students had family members who were deported under Trump's immigration law.

Ms Fear Ryan said about one third of the students at Barnes' high school were of Hispanic ethnicity, and that Trump's immigration policies had seen some of their family deported

'During 2016/2017, Hispanic students reported to the administration that some family members had been deported, and that the fear and anxiety caused by the specter of deportation was negatively impacting their attendance and attention in school,' she said.

In the letter from Principal Timmons, Barnes was wished well and apologized to for the suspension.

In a statement, Hillsboro School District says it 'supports, encourages and celebrates free speech and reasoned debate'.

'We also have a responsibility to ensure that each of our students feels welcome and safe in our schools so they can effectively learn,' the statement read.

'This was an instance where we were challenged to do both simultaneously and the decision landed on the side of ensuring student safety.

'Moving forward, we will continue to use professional discretion to meet both objectives and will actively seek ways to turn sensitive situations into learning opportunities.'