A judge has barred Arizona officials from enforcing a law banning Mexican-American studies programmes, a measure that spurred an outcry in a state that is both conservative and home to a substantial Latino population.

The decision from Judge A Wallace Tashima blocked a law that prohibited charter schools or school districts from courses that “are designed primarily for pupils of a particular ethnic group” and “advocate ethnic solidarity instead of the treatment of pupils as individuals”.

In his ruling, Ms Tashima ruled the prohibition was passed “not for a legitimate educational purpose” but for “an invidious discriminatory racial purpose” and “a politically partisan purpose”. He had declared the measure unconstitutional earlier this year.

The Arizona Superintendent of Public Instruction's office did not respond to The Independent's request for comment.

The ethnic studies prohibition drew a legal challenge from students and parents who said their rights were violated by the Tucson Unified School District seeking to eliminate Mexican-American studies classes. According to court documents, a majority of the district’s students were Latino.

Tensions over the program burst into public view when students protested a speech by a state education official at Tucson High School. In response, the state’s then-Superintendent of Public Instruction Tom Horne penned a letter warning the demonstrators had created “a hostile atmosphere in the school for the other students, who were not born into their ‘race’” and denouncing ethnic studies classes as “destructive ethnic chauvinism”.

'I can get my family back': immigrants driven out of Arizona return home Show all 3 1 /3 'I can get my family back': immigrants driven out of Arizona return home 'I can get my family back': immigrants driven out of Arizona return home Protesters outside Arizona's State Capitol in Phoenix celebrate their legal victory against the crackdown on illegal immigration Joshua Lott/Reuters 'I can get my family back': immigrants driven out of Arizona return home Campaigners with Patricia Rosas, right, who now says she can look forward to being reunited with her daughter, son-in-law and grandchildren after the court ruling on Senate Bill 1070 Guy Adams 'I can get my family back': immigrants driven out of Arizona return home The judge's decision is a setback however for Arizona's governor Jan Brewer Jill Torrance/Arizona Daily Star/AP

A few years later, with Mr Horne in support, the Arizona Legislature passed a law effectively banning ethnic studies — and Mr Horne ordered the Tucson school district to dissolve its Mexican-American studies program or lose 10 per cent of its funding.

His successor also lambasted the program and wrote racially charged blog comments that, among other things, claimed “the Mexican-American Studies classes use the exact same technique that Hitler used in his rise to power” and proclaimed “No Spanish radio stations, no Spanish billboards, no Spanish TV stations, no Spanish newspapers. This is America, speak English,” according to court documents.