Wrong. Police ASKED for consent and it was GIVEN. Maybe you fail to understand that. It's not a right if you choose to give it up. If you choose to give up your right, then you have no business complaining.
It doesn't matter if the OP consented to a search after being unlawfully detained.
The simple fact is that since the officers did not have reasonable suspicion to initiate the stop, therefore that means that anything & everything found after is "fruit of the poisonous tree".
The officers could have found a dead body in the OP's trunk & a judge would have to exclude it, don't they teach you guys proper procedure anymore?