Democrat rose to prominence by repeatedly challenging Donald Trump in court, is practically assured party's nomination