South Australian public schools will benefit from more than $50m in upgrades to help increase student capacity.