The state Senate passed legislation that would require public and charter schools to strategize on how to introduce more shade on campus, plant gardens and replace surfaces that hold on to a lot of heat with alternatives such as grass and wood chips.