(CNN) It took six days, but Arizona teachers are ending their walkout after the governor signed an education funding bill into law.

In marathon legislative negotiations that lasted overnight, both the House and Senate passed the bill before it went to Gov. Doug Ducey on Thursday morning.

The measure, dubbed the "#20x2020" plan, gives a 20% boost in teacher pay over the next three years -- including 10% in school year 2018, the governor's office said.

The new law also increases funding for support staff, new textbooks, upgraded technology and infrastructure, which will help make up for recession-era cuts.

"The plan is (for teachers) to return to classrooms on Friday, but it's up to each district to make that determination," National Education Association spokesman Miguel Gonzalez said.

Read More