Estate agents win legal action against regulator