Cast one’s lot in with (someone)

To join with someone and accept whatever happens – good or bad.

The woman cast her lot in with the new company and worked hard to make it a success.