Appeals court reverses ruling in lawsuit over man fatally shot by Huntington Beach police