Duncan Lewis wins important legal ruling