Kansas lawmakers agreed over the weekend to send more money to the state’s poor school districts, addressing a State Supreme Court ruling last month that school financing had to be equalized around the state.

But policy changes that lawmakers added to the bill, most significantly diminishing job protections for teachers, seem all but certain to become a thorny campaign issue for Gov. Sam Brownback, a conservative Republican, as he seeks a second term.

In a state where a debate over financing for education has simmered for years, Mr. Brownback has yet to say whether he will sign the measure, approved late into the night on Sunday. But a statement from his office suggested support, reading, in part: “The bill ensures that taxpayer dollars are spent efficiently, putting money in the classrooms to help teachers teach and students learn.”

If anything, the measure — and a grueling, round-the-clock battle in recent days to reach it — was an election-year reminder to Mr. Brownback and other state leaders of the complexities of Kansas politics: While the state capital is firmly controlled by Republicans, they are by no means of a single view.