Madrid court blocks 'harmful' city lockdown