Parliament approves bailout deal with a majority vote