In the bag

Used for something achieved

Examples

I think the election is in the bag. Our party has got the support of the majority of voters.