Thousands turn up at court to support Catalan President