Pro-Palestine protesters have clashed with police at a demonstration in Sydney, hours after a Supreme Court judge rejected a bid to quash police powers.