The government will spend $6 billion on schools infrastructure to ease overcrowding and cope with ballooning enrolments.