Most school districts gain from state budget