Updated

Mexico's Supreme Court on Tuesday declared unconstitutional a key portion of a military law that has broadened the influence of military courts and angered civilian victims seeking justice.

The 8-2 ruling said a provision of the Code of Military Justice that claims authority over all crimes committed by soldiers on duty is incompatible with Mexico's constitution. The ruling said it violates a federal law stipulating that military courts should not expand their scope over civilians affected by a case.

The court's majority ruled that soldiers arrested as suspects in the killing of Bonfilio Rubio, an indigenous man of southern Mexico, should be transferred to a civilian court. Rubio died in June 2009 after soldiers opened fire on a bus that he was traveling in at a checkpoint near the town of Huamuxtitlan.

"When a person outside the military is either the defendant or the victim, an ordinary judge has authority over this case, not a military judge, the constitution says it," Justice Luis María Aguilar said.

A part of the military code says all crimes committed by soldiers on duty are considered crimes against military discipline.

The provision has been subject of scrutiny because human rights activists claim it has long allowed security forces to take over cases of fellow soldiers accused of abusing, torturing and executing civilians.

Rights groups and Mexican news media obtained records that showed military prosecutors opened nearly 5,000 investigations into alleged violations of human rights between 2007 and April 2012, but only 38 service members were convicted and sentenced. The number of complaints has increased since President Felipe Calderon deployed tens of thousands of soldiers to crack down on drug traffickers.

The Inter-American Court on Human Rights has urged Mexico to reform the Code of Military Justice.

"This is the most important step the Supreme Court has ever taken toward ending the longstanding practice of sending abuses by soldiers to military courts," said Nik Steinberg, the Mexico and Cuba researcher of Human Rights Watch.

The international court, which has jurisdiction over member states such as Mexico, ruled in a 2009 case that military jurisdiction could not apply to any case in which a civilian's human rights were violated. The decision, however, did not establish a precedent.

In Mexico, five separate rulings in different cases are required to set a broad precedent beyond the individual cases. The Supreme Court recently issued a ruling in another case holding that when the victim of an alleged crime is a civilian, an ordinary judge should oversee the case, and it still has to rule on 27 other cases involving the military.

___

Adriana Gomez Licon on Twitter: http://www.twitter.com/agomezlicon