Legislature passes crucial amendments to Historic Rehabilitation Tax Credit