Lawmakers approve bill for hot car rescues