Thousands of people have gathered in central Sydney to show their support for Palestinians trapped in Gaza.