Violent clashes erupt as Spanish court jails Catalonia leaders