WikiLeaks founder Julian Assange hailed his "important victory" after Swedish prosecutors dropped a rape investigation against him.