Legislation would prevent purchase of solar panels using tax