Spain votes for direct rule of Catalonia