The government has confirmed the first school-based nurseries opening in the UK, which could save parents thousands of pounds on childcare.