A lawsuit is challenging the legality of the Metropolitan Police Department’s agreement with federal immigration authorities at the Clark County Detention Center.