Supreme Court appears ready to rule against unions in major setback for California teachers union