A major expansion scheme, which would double the size of a Nottinghamshire primary school, has been approved by planners.