Funding will go to nine states and five tribal nations for investments including battery backup systems, grid hardening and weatherization.