Spanish court backs controversial ‘gag’ law