End up (doing something)

To do something that one had not planned to do, to finally be or do something.

I ended up studying rather than going to a movie last night.