WICHITA, Kan. — Federal jurors convicted three men on Wednesday of plotting to blow up an apartment complex where Somali refugees live and pray in Garden City, Kan. The domestic terrorism verdict came at a time when threats against religious and racial minorities are rising nationally, and the case drew interest from the highest levels of the Justice Department.

“The defendants in this case acted with clear premeditation in an attempt to kill people on the basis of their religion and national origin,” Attorney General Jeff Sessions said in a statement. “That’s not just illegal — it’s immoral and unacceptable, and we’re not going to stand for it.”

The men, Curtis Allen, Gavin Wright and Patrick Stein, all of whom are white, appeared stoic as the verdicts were read at the federal courthouse in Wichita. Defense lawyers had tried to convince jurors that their clients were manipulated by the F.B.I., and had been unfairly targeted for exercising their rights to own guns and speak freely.

“He was a member of a militia. He loved his guns. This was a lifestyle,” Melody Brannon, a lawyer for Mr. Allen, told the mostly white jury. “The government tried to criminalize that lifestyle.”