Although the bill was easily approved in both chambers of the Legislature, supporters would need to muster three additional votes in the House and two in the Senate to override the veto by Mr. Brownback, a conservative Republican.