Yes, they get a golem's immunities, most of a solar's abilities, etc. As the Shapechange spell says, they get all supernatural and extraordinary attacks and qualities.
And yes, if shapechanged into an iron golem, they can't cast spells with V or M components.