The police took dozens of people into custody this week after N.B.A. finals watch parties in Midtown Manhattan grew unruly.