MINNEAPOLIS — Three Somali-American friends were found guilty on Friday of federal charges that they tried to travel to Syria to join the Islamic State, a plan that prosecutors said unfolded through propaganda videos and social media exchanges, and while they played basketball and paintball.

The verdicts against the three men — Guled Omar, 21; Abdirahman Daud, 22; and Mohamed Farah, 22 — came after an emotional 17-day trial in which onetime friends from Minnesota’s large Somali community testified against one another, family members squabbled in the hallways and spectators were occasionally ejected from the courtroom.

On Friday, the three defendants — who had all pleaded not guilty — sat impassively in dark suits as a court clerk began to read a litany of “guilty” verdicts, the most serious being conspiracy to commit murder overseas. They were also convicted of conspiring to provide material support to a terrorist organization.

The sobs of family members broke the silence. One woman, weeping, rushed from the courtroom, and others used their colorful head scarves to wipe their eyes and cover their faces. As the three men were led from the courtroom, Mr. Farah waved to the relatives and supporters in the gallery.