Thousands rally for ousted Pakistani judge