There are many approaches that schools may take to getting author visits funded, such as raising money through book fairs, cooperating with local service organizations, and applying for grants.
One great example of the latter: Texas schools, libraries, and nonprofit organizations can apply for grant funding from the Texas Commission on the Arts to support an author visit by me.