San Francisco jail filed a federal class action lawsuit Friday against the city over an alleged mass strip search.