Councillors have agreed to effectively ban sexual entertainment venues in South Ayrshire more than five years since first mooted.