Spain’s ban on Catalan flags struck down by court