Montana coal mine appeals ruling that could trigger layoffs