Millions of public school students across the nation are seeing their class sizes swell because of budget cuts and teacher layoffs, undermining a decades-long push by parents, administrators and policy makers to shrink class sizes.