Residents have lost their legal case against a wood factory which they claimed created dust that left them "unable to open ...