Court rules against police over unlawful arrest and inhumane treatment