Jailed Duterte rival celebrates 'moral victory' after court dismisses case