East Hartford, Enfield and Manchester are among dozens of districts getting a portion of nearly $20 million in federal grants for after-school programs.