A motion declaring independence was approved with 70 votes in favour, 10 against and two abstentions, with Catalan opposition MPs walking out of the 135-seat chamber before the vote in protest at a declaration unlikely to be given official recognition by Madrid and abroad.