Three Scottish universities are to receive £20m as part of a scheme to help Scotland meet its carbon emission reduction targets.