They both did but Bush initiated the bailout in 12/08 on his way out the door and Obama continued it, even loaned more money.
The Romney campaign ran against Obama by blaming him for the bailout and Obama's campaign gave him credit for it but neither side was actually correct.