Nearly two dozen South Carolina schools and nonprofits statewide are receiving a total of $1.8 million in federal grants to provide students with before- and after-school programs.