If (a) is good and (b) is not related to or necessary for (a) then clearly we should do (a) and not (b), and an agreement that ties them together for no reason is flawed and should be voted down so we can come back and vote on the separate issues separately.
If (b) is related to and necessary for (a) then clearly (a) isn't worth (b) and we should vote down the whole agreement.
Notice that in both cases we should vote down the whole agreement.
Otherwise you could take an agreement which is net +1000, add absolute garbage to it until it's net +0.5 and then argue that we should still pass it because the net result is still positive. Which, compared to the alternative of throwing away the net +0.5 agreement and insisting on the net +1000 agreement, is net -999.5.
A better measure for a deal like this is the geometric mean of its components. If one component is zero, the entire deal is worth zero, but otherwise each component contributes to the aggregate value of the deal.