The Catalan Parliament has passed a motion urging Quim Torra to call fresh elections or else face a confidence vote.