Judge refuses to toss lawsuit over deadly beating by police