The measure became an unexpected flashpoint between the NH House and Senate in the final weeks of the legislative session.