The ruling partially overturns a ban on certain types of licences for new tourist accommodation in the Mediterranean city.