Michigan appeals court says state lacks power in teacher layoff decisions