The European Union's General Court has stripped former Catalonia president Carles Puigdemont and other separatists of their parliamentary immunity as they face charges in Spain for their roles in the failed 2017 independence referendum.