Jennifer Steinhauer / New York Times News Service

WASHINGTON — When President Barack Obama proclaimed that those who commit sexual assault in the military should be “prosecuted, stripped of their positions, court-martialed, fired, dishonorably discharged,” it had an effect he did not intend: roiling legal cases across the country.

In at least a dozen sexual assault cases since the president’s remarks at the White House in May, judges and defense lawyers have said Obama’s words as commander in chief amounted to “unlawful command influence,” tainting trials as a result. Military law experts said those cases were only the beginning and that the president’s remarks were certain to complicate almost all continuing prosecutions for sexual assault.

“Unlawful command influence” refers to actions of commanders that could be interpreted by jurors as an attempt to influence a court-martial, in effect ordering a specific outcome. Obama, as commander in chief of the armed forces, is considered the most powerful person to wield such influence. The president’s remarks might have seemed innocuous to civilians, but military law experts say defense lawyers will seize on the president’s call for an automatic dishonorable discharge, the most severe discharge available in a court-martial, arguing that his words will affect their cases.

“His remarks were more specific than I’ve ever heard a commander in chief get,” said Thomas Romig, the former judge advocate general of the U.S. Army and the dean of the Washburn University School of Law in Topeka, Kan. “When the commander in chief says they will be dishonorably discharged, that’s a pretty specific message.”

At Shaw Air Force Base in South Carolina last month, a judge dismissed charges of sexual misconduct against an Army officer because of the president’s remarks. At Fort Bragg in North Carolina last month, lawyers cited the president’s words in a motion to dismiss the court-martial against Brig. Gen. Jeffrey Sinclair, who is accused of forcing a lower-ranking officer to perform oral sex on him, among other charges.

In Hawaii, a Navy judge ruled last month that two defendants in sexual assault cases, if found guilty, could not be punitively discharged because of Obama’s remarks. In Texas, a juror was dismissed from a military panel on a sexual assault case after admitting knowledge of the president’s words. In Alexandria, Va., Eric Montalvo, a former defense counsel in the Marine Corps who is now in private practice specializing in military law, has cited the president’s words in motions to dismiss two sexual assault cases, one against an Army sergeant and the other against a Navy seaman.

“Because the president is the commander in chief, it’s going to come up in basically every imaginable context in sexual assault cases,” said Eugene Fidell, who teaches military justice at Yale Law School.

Obama’s comments come at a time of intense scrutiny of sexual assault in the military. A recent Pentagon survey found that an estimated 26,000 men and women in the military were sexually assaulted last year, up from 19,000 in 2010. At the end of the last fiscal year — Sept. 30 — there were roughly 1,600 continuing sexual assault cases in the military either awaiting action from commanders or the completion of a criminal investigation.

White House officials said Obama’s remarks, made in response to a reporter’s question, were meant to demonstrate his concern about the issue and were not intended to recommend penalties for offenders.

Some military law experts said that while defense lawyers would naturally use the president’s words to try to get cases dismissed, they would be pushing legal boundaries. Obama, they said, used the phrase “dishonorable discharge” as a catchall for getting assailants out of the military and not in its strict, technical meaning.

“There is a point at which the statements of civilian officials could be so specifically directed, or so inflammatory, that a military defendant is deprived of due process,” said Diane Mazur, a professor emeritus at the University of Florida Levin College of Law. “But I don’t think the president’s remarks come close to that level.”

But others said it was hard not to see the potent meaning in Obama’s remarks, particularly on Capitol Hill, where lawmakers are contemplating making dishonorable discharge an automatic punishment for convicted offenders.

“There is a tension created between trying to give the victim their day in court, but you can’t ignore the defendant’s rights,” said Victor Hansen, a former military lawyer who is now an associate dean at the New England School of Law in Boston. “Whatever efforts are made to better address sexual assault, there is always the other side of the equation if someone gets too out front of the issue.”

Lawyers said it was too soon to know how many judges would grant motions for dismissal because of Obama’s words. They said that in many cases, judges might stop short of that and rule that defendants should stand trial but not be punitively discharged.