A Louisville judge on Friday threw out a lawsuit against the city and a former officer who hit a man in the back of the head with a baton while he was kneeling with his hands up during the 2020 protests.