A federal judge has approved a $5.9 million settlement in the civil rights suit challenging Philadelphia’s blanket policy of strip-searching every person admitted into the city’s prison system.

In her 52-page opinion in Boone v. Philadelphia, U.S. District Judge Mary A. McLaughlin also awarded attorney fees of more than $1.7 million — 30 percent of the settlement fund — to the team of plaintiffs lawyers from six firms, led by Daniel C. Levin of Levin Fishbein Sedran & Berman.