House lawmakers approve teacher layoffs bill