Court rules that police broke law by kettling G20 activists