Legislature debates teacher tenure, pay and benefits