To extend until 2018 the sunset on a law that allows a “retired” teacher to work in schools with shortages in certain subjects and collect pension checks alongside his or her current pay.