When federal agents arrested a group of Outlaw Gangsta Crips last summer in Brooklyn, N.Y., the 38-page indictment accused nearly two dozen gang members of robbery, attempted murder and cocaine distribution.

But the allegations also included an atypical charge for a street gang case: bank fraud.

Prosecutors said the gang members created and...