Hamas slams court ruling dissolving parliament