Tunisia's parliament on Wednesday approved a technocratic caretaker government tasked with leading the country out of a bruising political crisis and to fresh elections.