LA judge limits seniority-based teacher layoffs