The bill won final approval from a bipartisan group of lawmakers on the second-to-last day of the legislative session.