In all, 25,000 students will have the opportunity for six weeks of learning — an expansion of 2,000 students over last year’s summer school. Some programs will pay students to learn.